17 stdenv.mkDerivation (finalAttrs: {
22 url = "https://dl.suckless.org/st/st-${finalAttrs.version}.tar.gz";
23 hash = "sha256-82NZeZc06ueFvss3QGPwvoM88i+ItPFpzSUbmTJOCOc=";
26 outputs = [ "out" "terminfo" ];
30 configFile = lib.optionalString (conf != null)
31 (writeText "config.def.h" conf);
33 postPatch = lib.optionalString (conf != null) "cp ${finalAttrs.configFile} config.def.h"
34 + lib.optionalString stdenv.isDarwin ''
35 substituteInPlace config.mk --replace "-lrt" ""
41 "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config"
56 export TERMINFO=$terminfo/share/terminfo
57 mkdir -p $TERMINFO $out/nix-support
58 echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
61 installFlags = [ "PREFIX=$(out)" ];
63 passthru.tests.test = nixosTests.terminal-emulators.st;
66 homepage = "https://st.suckless.org/";
67 description = "Simple Terminal for X from Suckless.org Community";
68 license = licenses.mit;
69 maintainers = with maintainers; [ andsild ];
70 platforms = platforms.unix;