42 lines
793 B
Nix
42 lines
793 B
Nix
{ stdenv, lib, pkgs, ... }:
|
|
|
|
# ####
|
|
stdenv.mkDerivation rec {
|
|
pname = "st-cust";
|
|
version = "0.9.2-gregory";
|
|
|
|
src = ./st;
|
|
|
|
buildPhase = "echo $PWD; echo $src; make all";
|
|
|
|
installPhase = ''
|
|
DESTDIR=$out/ make PREFIX=/ install
|
|
'';
|
|
|
|
buildInputs = with pkgs; [
|
|
xorg.libX11
|
|
xorg.libXft
|
|
xorg.libXrender
|
|
fontconfig
|
|
freetype
|
|
];
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
gnumake
|
|
pkg-config
|
|
];
|
|
|
|
meta = {
|
|
description = "Terminal emulator that does not suck dicks.";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
|
|
strictDeps = true;
|
|
postPatch = ''
|
|
substituteInPlace config.mk \
|
|
--replace "/usr/local" "$out"
|
|
'';
|
|
}
|
|
|