commit a6bd10ef7148c500e7d30ed5e63ec1e5cf3b8b80 parent 51cddecabf341c46d33068437a13a761226bd7f1 Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Mon, 15 Apr 2024 15:48:10 +0200 feat(nix): add stdenv build script Diffstat:
A | default.nix | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/default.nix b/default.nix @@ -0,0 +1,20 @@ +let + pkgs = import <nixpkgs> { }; +in + pkgs.stdenv.mkDerivation { + name = "diary"; + version = "v0.10-nightly"; + buildInputs = with pkgs; [ + ncurses + curlFull + lttng-ust + ]; + + src = ./.; + + installPhase = '' + mkdir -p $out/bin + cp diary $out/bin/diary + ''; + } +