~jb55/cmdtree

5606078e8fa02462f0208d9f9cad98c7673812e6 — Ben Sima 1 year, 6 months ago 775380b master
Add a simple default.nix
2 files changed, 15 insertions(+), 0 deletions(-)

M .gitignore
A default.nix
M .gitignore => .gitignore +1 -0
@@ 4,3 4,4 @@
/cfg.h
/TAGS
/archive/
/result

A default.nix => default.nix +14 -0
@@ 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 ];
}