2024-06-13 17:31:49 +01:00
|
|
|
{ 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 = "1cde288ca34ad05984a0251a7879005128be085c";
|
|
|
|
sha256 = "sha256-4W9w/Efk+YCSP1VuUFr+jPXIyrlpktwxRPUOZHTAtx8=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXft
|
2024-06-13 17:44:06 +01:00
|
|
|
];
|
2024-06-13 17:31:49 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-06-13 23:33:14 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mv st $out/bin
|
2024-06-13 17:31:49 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
}
|