blob: a9a0fec6861fe75ead4f3b4ccd7fcbdf39cf5b2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{stdenv, fetchgit, xorg }:
stdenv.mkDerivation {
name = "cmdtree";
src = fetchgit {
url = "https://git.sr.ht/~jb55/cmdtree";
rev = "5606078e8fa02462f0208d9f9cad98c7673812e6";
sha256 = "sha256-/5f8uxcMmH7/W58if2DIl4R0Emt8jDWeoImOmQL6C7U=";
};
buildPhase = ''
cp ${../lib/cfg.def.h} ./cfg.def.h
make
'';
installPhase = ''
mkdir -p $out/bin
install -m755 ./cmdtree $out/bin
'';
buildInputs = [ xorg.libX11 xorg.libXft ];
}
|