17 stdenv.mkDerivation rec {
22 url = "https://dl.suckless.org/st/${pname}-${version}.tar.gz";
23 hash = "sha256-6mgyID7QL/dBgry4raqexFTI+YnnkjLLhZZl4vVEqzc=";
28 configFile = lib.optionalString (conf != null)
29 (writeText "config.def.h" conf);
31 postPatch = lib.optionalString (conf != null) "cp ${configFile} config.def.h"
32 + lib.optionalString stdenv.isDarwin ''
33 substituteInPlace config.mk --replace "-lrt" ""
39 "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
54 export TERMINFO=$out/share/terminfo
57 installFlags = [ "PREFIX=$(out)" ];
59 passthru.tests.test = nixosTests.terminal-emulators.st;
62 homepage = "https://st.suckless.org/";
63 description = "Simple Terminal for X from Suckless.org Community";
64 license = licenses.mit;
65 maintainers = with maintainers; [ andsild ];
66 platforms = platforms.unix;