-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.nix
37 lines (28 loc) · 755 Bytes
/
build.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, rustPlatform, rust, buildInputs, nativeBuildInputs, ... }:
let
pname = "dead-man-switch-tui";
version = "0.4.1";
buildRustPackage = rustPlatform.buildRustPackage.override {
rustc = rust;
cargo = rust;
};
in
buildRustPackage {
inherit pname version;
doCheck = false;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
inherit buildInputs nativeBuildInputs;
# Override the Rust compiler used
rustc = "${rust}/bin/rustc";
cargo = "${rust}/bin/cargo";
meta = with lib; {
description = "Rust no-BS Dead Man's Switch";
homepage = "https://github.com/storopoli/dead-man-switch";
license = licenses.agpl3Only;
maintainers = [ maintainers.storopoli ];
platforms = platforms.all;
};
}