git.iko.soy/typeable/nixpkgs
on master help sign in
dwm-git: init at 20180602 (#45716)

The latest tagged release dwm 6.1 is from 2015, so the development version is much more current.

commit683707ea03d338e514c0fee75dccd61acd348c4c authorxeji <36407913+xeji@users.noreply.github.com> dateWed 29 Aug 2018, 19:39 (8 years ago) parent70b3ac8
2 files changed+42
pkgs/applications/window-managers/dwm/git.nix+37 pkgs/top-level/all-packages.nix+5
pkgs/applications/window-managers/dwm/git.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, fetchgit, libX11, libXinerama, libXft, patches ? [], conf ? null }:
2+
3+let
4+ name = "dwm-git-20180602";
5+in
6+
7+stdenv.mkDerivation {
8+ inherit name;
9+
10+ src = fetchgit {
11+ url = "git://git.suckless.org/dwm";
12+ rev = "b69c870a3076d78ab595ed1cd4b41cf6b03b2610";
13+ sha256 = "10i079h79l4gdch1qy2vrrb2xxxkgkjmgphr5r9a75jbbagwvz0k";
14+ };
15+
16+ buildInputs = [ libX11 libXinerama libXft ];
17+
18+ prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
19+
20+ # Allow users set their own list of patches
21+ inherit patches;
22+
23+ # Allow users to override the entire config file AFTER appying the patches
24+ postPatch = stdenv.lib.optionalString (conf!=null) ''
25+ echo -n '${conf}' > config.def.h
26+ '';
27+
28+ buildPhase = "make";
29+
30+ meta = with stdenv.lib; {
31+ homepage = https://suckless.org/;
32+ description = "Dynamic window manager for X, development version";
33+ license = licenses.mit;
34+ maintainers = with maintainers; [xeji];
35+ platforms = platforms.unix;
36+ };
37+}
pkgs/top-level/all-packages.nix+5
@@ -15902,6 +15902,11 @@ with pkgs;
1590215902 patches = config.dwm.patches or [];
1590315903 };
1590415904
15905+ dwm-git = callPackage ../applications/window-managers/dwm/git.nix {
15906+ patches = config.dwm.patches or [];
15907+ conf = config.dwm.conf or null;
15908+ };
15909+
1590515910 dwm-status = callPackage ../applications/window-managers/dwm/dwm-status.nix { };
1590615911
1590715912 dynamips = callPackage ../applications/virtualization/dynamips { };