From be781b0d2f78b4fcbcc7e10d23de829452ad32ec Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 31 Aug 2021 20:20:09 +0200 Subject: [PATCH 1/4] abacus: use static libraries We do not want to install those libraries in any way. --- src/bignum/meson.build | 2 +- src/parse/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bignum/meson.build b/src/bignum/meson.build index 7346d21..af1e4e5 100644 --- a/src/bignum/meson.build +++ b/src/bignum/meson.build @@ -5,7 +5,7 @@ bignum_sources = files( bignum_inc = include_directories('.') -bignum_lib = library( +bignum_lib = static_library( 'bignum', sources: bignum_sources, ) diff --git a/src/parse/meson.build b/src/parse/meson.build index 254d868..1a3bdcb 100644 --- a/src/parse/meson.build +++ b/src/parse/meson.build @@ -31,7 +31,7 @@ parser_sources = custom_target( parse_inc = include_directories('.') -parse_lib = library( +parse_lib = static_library( 'parser', 'parser-driver.cc', 'parser-driver.hh', From edd8d1f329570bc01842d48052bf7548b1d6c463 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 31 Aug 2021 20:20:22 +0200 Subject: [PATCH 2/4] abacus: fix install --- src/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meson.build b/src/meson.build index 182500e..a6c5cb2 100644 --- a/src/meson.build +++ b/src/meson.build @@ -12,4 +12,5 @@ abacus = executable( bignum, parse, ], + install: true, ) From ac6b633c893d150f838170857eaa564497d62c1d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 31 Aug 2021 20:20:30 +0200 Subject: [PATCH 3/4] nix: remove 'meta.broken' Now that we actually install the program... --- flake.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/flake.nix b/flake.nix index b2d50ed..56d4ecf 100644 --- a/flake.nix +++ b/flake.nix @@ -87,7 +87,6 @@ ]; meta = with pkgs.lib; { - broken = true; # Only breaks under nix description = "A simple calculator using big numbers"; homepage = "https://gitea.belanyi.fr/ambroisie/abacus"; license = licenses.mit; From f14f0ce9dba6943bfd7aa121322c9223e74000c0 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 31 Aug 2021 20:21:12 +0200 Subject: [PATCH 4/4] ci: add Drone CI --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0fae50d --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +--- +kind: pipeline +type: exec +name: abacus checks + +steps: +- name: flake check + commands: + - nix flake check + +- name: notifiy + commands: + - nix run .#matrix-notifier + environment: + ADDRESS: + from_secret: matrix_homeserver + ROOM: + from_secret: matrix_roomid + USER: + from_secret: matrix_username + PASS: + from_secret: matrix_password + when: + status: + - failure + - success +...