38 lines
635 B
Nix
38 lines
635 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, fetchFromGitea ? pkgs.fetchFromGitea
|
|
, pkg-config ? pkgs.pkg-config
|
|
, libX11 ? pkgs.xorg.libX11
|
|
, libXft ? pkgs.xorg.libXft
|
|
}:
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "st";
|
|
name = "st";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.bitlab21.com";
|
|
owner = "sam";
|
|
repo = "st";
|
|
rev = "31e0ba8cb2086fb12741afc5fc3dfd938ca1f59b";
|
|
sha256 = "sha256-dbkXFbNr/lJveMeR7qXo7jGgF5+79S9vqKsLM7XM250=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXft
|
|
];
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv st $out/bin
|
|
'';
|
|
|
|
}
|