slstatus: unstable-2022-12-19 -> 1.0

+13 -10
+13 -10
pkgs/applications/misc/slstatus/default.nix
··· 7 , libXau 8 , libXdmcp 9 , conf ? null 10 - , patches ? [] 11 }: 12 13 stdenv.mkDerivation rec { 14 pname = "slstatus"; 15 - version = "unstable-2022-12-19"; 16 17 src = fetchgit { 18 url = "https://git.suckless.org/slstatus"; 19 - rev = "c919def84fd4f52f501548e5f7705b9d56dd1459"; 20 - hash = "sha256-nEIHIO8CAYdtX8GniO6GDEaHj7kEu81b05nCMVdr2SE="; 21 }; 22 23 - configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf); 24 - preBuild = '' 25 - ${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"} 26 - makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC) 27 - ''; 28 29 inherit patches; 30 31 nativeBuildInputs = [ pkg-config ]; 32 - buildInputs = [ libX11 libXau libXdmcp]; 33 34 installFlags = [ "PREFIX=$(out)" ]; 35
··· 7 , libXau 8 , libXdmcp 9 , conf ? null 10 + , patches ? [ ] 11 }: 12 13 stdenv.mkDerivation rec { 14 pname = "slstatus"; 15 + version = "1.0"; 16 17 src = fetchgit { 18 url = "https://git.suckless.org/slstatus"; 19 + rev = version; 20 + hash = "sha256-cFah6EgApslLSlJaOy/5W9ZV9Z1lzfKye/rRh9Om3T4="; 21 }; 22 23 + preBuild = 24 + let 25 + configFile = if lib.isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf; 26 + in 27 + '' 28 + ${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"} 29 + makeFlagsArray+=(LDLIBS="-lX11 -lxcb -lXau -lXdmcp" CC=$CC) 30 + ''; 31 32 inherit patches; 33 34 nativeBuildInputs = [ pkg-config ]; 35 + buildInputs = [ libX11 libXau libXdmcp ]; 36 37 installFlags = [ "PREFIX=$(out)" ]; 38