dwm: add updateScript

Qusic 3e426221 44d0940e

+8 -1
+8 -1
pkgs/applications/window-managers/dwm/default.nix
··· 1 - { lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [ ], conf ? null}: 2 3 stdenv.mkDerivation rec { 4 pname = "dwm"; ··· 28 lib.optionalString (conf != null) "cp ${configFile} config.def.h"; 29 30 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 31 32 meta = with lib; { 33 homepage = "https://dwm.suckless.org/";
··· 1 + { lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [ ], conf ? null 2 + # update script dependencies 3 + , gitUpdater 4 + }: 5 6 stdenv.mkDerivation rec { 7 pname = "dwm"; ··· 31 lib.optionalString (conf != null) "cp ${configFile} config.def.h"; 32 33 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 34 + 35 + passthru.updateScript = gitUpdater { 36 + url = "git://git.suckless.org/dwm"; 37 + }; 38 39 meta = with lib; { 40 homepage = "https://dwm.suckless.org/";