personal/dotfiles

pkgs/stw.nix in framework
Repositories | Summary | Log | Files | README.md | LICENSE

stw.nix (482B) download


 1{ pkgs ? import <nixpkgs> { }, configHeader }:
 2
 3with pkgs; stdenv.mkDerivation {
 4  name = "stw";
 5  src = fetchGit {
 6    url = "https://github.com/sineemore/stw";
 7    rev = "54377209c6313c9637aab904d06c5c383414a5ee";
 8  };
 9
10  nativeBuildInputs = [
11    pkg-config
12  ];
13
14  buildInputs = [
15    xorg.libXft
16    fontconfig
17  ];
18
19  configurePhase = ''
20    ln -sf ${configHeader} config.h
21  '';
22
23  buildPhase = ''
24    make all
25  '';
26
27  installPhase = ''
28    make PREFIX=$out install
29  '';
30}