Skip to content

Commit 5606078

Browse files
bsimajb55
authored andcommitted
Add a simple default.nix
1 parent 775380b commit 5606078

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/cfg.h
55
/TAGS
66
/archive/
7+
/result

default.nix

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{ nixpkgs ? import <nixpkgs> {} }:
2+
3+
with nixpkgs;
4+
5+
stdenv.mkDerivation {
6+
name = "cmdtree";
7+
src = ./.;
8+
buildPhase = "make";
9+
installPhase = ''
10+
mkdir -p $out/bin
11+
cp ./cmdtree $out/bin
12+
'';
13+
buildInputs = [ pkgs.xorg.libX11 pkgs.xorg.libXft ];
14+
}

0 commit comments

Comments
 (0)