-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
36 lines (34 loc) · 956 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
description = "ayys's fork of st - the suckless simple terminal";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
flakeutils.url = "github:numtide/flake-utils";
};
outputs =
{ self, nixpkgs, flakeutils }:
flakeutils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
packages = rec {
st = pkgs.stdenv.mkDerivation {
name = "st";
src = ./.;
buildInputs = [
pkgs.gcc pkgs.pkg-config pkgs.xorg.libX11 pkgs.xorg.libXft pkgs.ncurses pkgs.hack-font
];
buildPhase = ''
make
'';
installPhase = ''
TERMINFO="$out" make install DESTDIR="$out" PREFIX=""
'';
};
default = st;
};
apps = rec {
st = flakeutils.lib.mkApp { drv = self.packages.${system}.st; };
default = st;
};
}
);
}