summaryrefslogtreecommitdiff
path: root/nix/package.nix
blob: 36fdd6d7836a225a96129fc5b7e58e053504c9e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
  '';
}