summaryrefslogtreecommitdiff
path: root/nix/package.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-10-02 09:03:19 +0200
committerLinnnus <[email protected]>2024-10-02 09:03:19 +0200
commit144562570e7a5e80a45960579ba7f780d7129a44 (patch)
tree2c4ef3908091f006153fe64e3b547e0711832aba /nix/package.nix
parenta37cfb89a2a56cac19d932b3338d1d5bebdc654b (diff)
Factor nix code into separate files
Diffstat (limited to 'nix/package.nix')
-rw-r--r--nix/package.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nix/package.nix b/nix/package.nix
new file mode 100644
index 0000000..36fdd6d
--- /dev/null
+++ b/nix/package.nix
@@ -0,0 +1,15 @@
+{ rustPlatform
+, version
+}:
+
+rustPlatform.buildRustPackage {
+ pname = "webhook-listener";
+ inherit version;
+ src = ../.;
+ cargoLock.lockFile = ../Cargo.lock;
+
+ # Tests in systemd_socket are extremely finicky, so they cannot be run in parallel with other unit tests.
+ checkPhase = ''
+ cargo test -- --test-threads=1
+ '';
+}