summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-01-01 21:04:55 -0500
committerBen Sima <ben@bsima.me>2023-01-01 21:07:39 -0500
commit0ae836cb332506ed61f0da320b279b953ab3344f (patch)
treef98f46870a78e1104732aeb6ae4ae70273e6402b
parent947c1909a95a711fb3cfe599df1ce690119ff77a (diff)
update cmdtree
Change-Id: Ie4a5f9db92b4e6bc8b1b348217db2a09df2d2417
-rw-r--r--pkgs/cmdtree.nix14
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/cmdtree.nix b/pkgs/cmdtree.nix
index a9a0fec..1c991bb 100644
--- a/pkgs/cmdtree.nix
+++ b/pkgs/cmdtree.nix
@@ -3,17 +3,13 @@
stdenv.mkDerivation {
name = "cmdtree";
src = fetchgit {
- url = "https://git.sr.ht/~jb55/cmdtree";
- rev = "5606078e8fa02462f0208d9f9cad98c7673812e6";
- sha256 = "sha256-/5f8uxcMmH7/W58if2DIl4R0Emt8jDWeoImOmQL6C7U=";
+ url = "git://jb55.com/cmdtree";
+ rev = "a7a1f07bfca23397d0d645cb7dbc3b7a63e521cb";
+ sha256 = "sha256-QPUJUNiLzva+Mtbhic/yv6u2VIFdXkiZCtSz4eWSxzc=";
};
- buildPhase = ''
+ patchPhase = ''
cp ${../lib/cfg.def.h} ./cfg.def.h
- make
- '';
- installPhase = ''
- mkdir -p $out/bin
- install -m755 ./cmdtree $out/bin
'';
+ makeFlags = "PREFIX=$(out)";
buildInputs = [ xorg.libX11 xorg.libXft ];
}