15 # update script dependencies
19 stdenv.mkDerivation (finalAttrs: {
24 url = "https://dl.suckless.org/st/st-${finalAttrs.version}.tar.gz";
25 hash = "sha256-ayFdT0crIdYjLzDyIRF6d34kvP7miVXd77dCZGf5SUs=";
28 outputs = [ "out" "terminfo" ];
32 configFile = lib.optionalString (conf != null)
33 (writeText "config.def.h" conf);
35 postPatch = lib.optionalString (conf != null) "cp ${finalAttrs.configFile} config.def.h"
36 + lib.optionalString stdenv.hostPlatform.isDarwin ''
37 substituteInPlace config.mk --replace "-lrt" ""
43 "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
58 export TERMINFO=$terminfo/share/terminfo
59 mkdir -p $TERMINFO $out/nix-support
60 echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
63 installFlags = [ "PREFIX=$(out)" ];
66 tests.test = nixosTests.terminal-emulators.st;
67 updateScript = gitUpdater {
68 url = "git://git.suckless.org/st";
73 homepage = "https://st.suckless.org/";
74 description = "Simple Terminal for X from Suckless.org Community";
75 license = licenses.mit;
76 maintainers = with maintainers; [ qusic ];
77 platforms = platforms.unix;