From 144562570e7a5e80a45960579ba7f780d7129a44 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Wed, 2 Oct 2024 09:03:19 +0200 Subject: Factor nix code into separate files --- nix/package.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nix/package.nix (limited to 'nix/package.nix') 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 + ''; +} -- cgit v1.2.3