commit 5606078e8fa02462f0208d9f9cad98c7673812e6 parent 775380ba5d29d9b4057440e6a86f69e0d0213585 Author: Ben Sima <ben@bsima.me> Date: Tue, 26 Feb 2019 09:38:40 -0800 Add a simple default.nix Diffstat:
M | .gitignore | | | 1 | + |
A | default.nix | | | 14 | ++++++++++++++ |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -4,3 +4,4 @@ /cfg.h /TAGS /archive/ +/result diff --git a/default.nix b/default.nix @@ -0,0 +1,14 @@ +{ nixpkgs ? import <nixpkgs> {} }: + +with nixpkgs; + +stdenv.mkDerivation { + name = "cmdtree"; + src = ./.; + buildPhase = "make"; + installPhase = '' + mkdir -p $out/bin + cp ./cmdtree $out/bin + ''; + buildInputs = [ pkgs.xorg.libX11 pkgs.xorg.libXft ]; +}