ref: 5606078e8fa02462f0208d9f9cad98c7673812e6 cmdtree/default.nix -rw-r--r-- 260 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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 ];
}