diff options
author | euxane | 2024-11-30 12:16:50 +0100 |
---|---|---|
committer | euxane | 2024-11-30 12:16:50 +0100 |
commit | 62f23d9a24e349f57e8857c75bdf2c0ca32c4f70 (patch) | |
tree | 60a6dbfa8de7bcc7dd6c08654f1f62e3dc717992 /flake.nix | |
parent | f6d0572984f78f400166fc585dd3b3a120101647 (diff) | |
download | tickwatch-62f23d9a24e349f57e8857c75bdf2c0ca32c4f70.tar.gz |
makefile: add
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -39,18 +39,14 @@ | |||
39 | version = "SNAPSHOT"; | 39 | version = "SNAPSHOT"; |
40 | src = ./.; | 40 | src = ./.; |
41 | buildInputs = [ pkgs.nim ]; | 41 | buildInputs = [ pkgs.nim ]; |
42 | buildPhase = '' | ||
43 | export VERSION=${final.version} | ||
44 | nim c --nimcache:. -d:release main.nim | ||
45 | ''; | ||
46 | doCheck = true; | 42 | doCheck = true; |
47 | checkPhase = '' | 43 | makeFlags = [ |
48 | nim r --nimcache:. -d:test main.nim | 44 | "NIM_FLAGS=--nimcache:." |
49 | ''; | 45 | "VERSION=${final.version}" |
50 | installPhase = '' | 46 | ]; |
51 | mkdir -p $out/bin | 47 | installFlags = [ |
52 | mv main $out/bin/${final.meta.mainProgram} | 48 | "DESTDIR=$(out)" |
53 | ''; | 49 | ]; |
54 | }); | 50 | }); |
55 | }); | 51 | }); |
56 | } | 52 | } |