Skip to content

Commit 6651536

Browse files
committed
nix: fixup install
1 parent 5606078 commit 6651536

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

default.nix

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
{ nixpkgs ? import <nixpkgs> {} }:
1+
{ pkgs ? import <nixpkgs> {} }:
22

3-
with nixpkgs;
4-
5-
stdenv.mkDerivation {
6-
name = "cmdtree";
3+
pkgs.stdenv.mkDerivation {
4+
pname = "cmdtree";
5+
version = "0.1";
76
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 ];
7+
makeFlags = "PREFIX=$(out)";
8+
buildInputs = with pkgs; [ xorg.libX11 xorg.libXft ];
149
}

0 commit comments

Comments
 (0)