From 62f23d9a24e349f57e8857c75bdf2c0ca32c4f70 Mon Sep 17 00:00:00 2001 From: euxane Date: Sat, 30 Nov 2024 12:16:50 +0100 Subject: makefile: add --- flake.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index bbfd8f0..2118e42 100644 --- a/flake.nix +++ b/flake.nix @@ -39,18 +39,14 @@ version = "SNAPSHOT"; src = ./.; buildInputs = [ pkgs.nim ]; - buildPhase = '' - export VERSION=${final.version} - nim c --nimcache:. -d:release main.nim - ''; doCheck = true; - checkPhase = '' - nim r --nimcache:. -d:test main.nim - ''; - installPhase = '' - mkdir -p $out/bin - mv main $out/bin/${final.meta.mainProgram} - ''; + makeFlags = [ + "NIM_FLAGS=--nimcache:." + "VERSION=${final.version}" + ]; + installFlags = [ + "DESTDIR=$(out)" + ]; }); }); } -- cgit v1.2.3