···1-{lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [], conf ? null}:
2-3-with lib;
45-let
6- name = "dwm-6.2";
7-in
8-stdenv.mkDerivation {
9- inherit name;
1011 src = fetchurl {
12- url = "https://dl.suckless.org/dwm/${name}.tar.gz";
13 sha256 = "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p";
14 };
1516 buildInputs = [ libX11 libXinerama libXft ];
1718- prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
001920 # Allow users set their own list of patches
21 inherit patches;
2223 # Allow users to set the config.def.h file containing the configuration
24- postPatch = let configFile = if isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf;
25- in optionalString (conf!=null) "cp ${configFile} config.def.h";
000002627- meta = {
28- homepage = "https://suckless.org/";
29- description = "Dynamic window manager for X";
30- license = lib.licenses.mit;
31- maintainers = with lib.maintainers; [viric];
32- platforms = with lib.platforms; all;
00000000033 };
34}
···1+{ lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [ ], conf ? null}:
0023+stdenv.mkDerivation rec {
4+ pname = "dwm";
5+ version = "6.2";
0067 src = fetchurl {
8+ url = "https://dl.suckless.org/dwm/${pname}-${version}.tar.gz";
9 sha256 = "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p";
10 };
1112 buildInputs = [ libX11 libXinerama libXft ];
1314+ prePatch = ''
15+ sed -i "s@/usr/local@$out@" config.mk
16+ '';
1718 # Allow users set their own list of patches
19 inherit patches;
2021 # Allow users to set the config.def.h file containing the configuration
22+ postPatch =
23+ let
24+ configFile =
25+ if lib.isDerivation conf || builtins.isPath conf
26+ then conf else writeText "config.def.h" conf;
27+ in
28+ lib.optionalString (conf != null) "cp ${configFile} config.def.h";
2930+ meta = with lib; {
31+ homepage = "https://dwm.suckless.org/";
32+ description = "An extremely fast, small, and dynamic window manager for X";
33+ longDescription = ''
34+ dwm is a dynamic window manager for X. It manages windows in tiled,
35+ monocle and floating layouts. All of the layouts can be applied
36+ dynamically, optimising the environment for the application in use and the
37+ task performed.
38+ Windows are grouped by tags. Each window can be tagged with one or
39+ multiple tags. Selecting certain tags displays all windows with these
40+ tags.
41+ '';
42+ license = licenses.mit;
43+ maintainers = with maintainers; [ viric ];
44+ platforms = platforms.all;
45 };
46}
-36
pkgs/applications/window-managers/dwm/git.nix
···1-{ lib, stdenv, fetchgit, libX11, libXinerama, libXft, writeText, patches ? [ ]
2-, conf ? null }:
3-4-stdenv.mkDerivation {
5- pname = "dwm-git";
6- version = "20200303";
7-8- src = fetchgit {
9- url = "git://git.suckless.org/dwm";
10- rev = "61bb8b2241d4db08bea4261c82e27cd9797099e7";
11- sha256 = "1j3vly8dln35vnwnwwlaa8ql9fmnlmrv43jcyc8dbfhfxiw6f34l";
12- };
13-14- buildInputs = [ libX11 libXinerama libXft ];
15-16- prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
17-18- # Allow users set their own list of patches
19- inherit patches;
20-21- # Allow users to set the config.def.h file containing the configuration
22- postPatch = let
23- configFile = if lib.isDerivation conf || builtins.isPath conf then
24- conf
25- else
26- writeText "config.def.h" conf;
27- in lib.optionalString (conf != null) "cp ${configFile} config.def.h";
28-29- meta = with lib; {
30- homepage = "https://suckless.org/";
31- description = "Dynamic window manager for X, development version";
32- license = licenses.mit;
33- maintainers = with maintainers; [ xeji ];
34- platforms = platforms.unix;
35- };
36-}
···000000000000000000000000000000000000
+1
pkgs/top-level/aliases.nix
···150 dydisnix = throw "dydisnix has been removed."; # added 2021-01-27
151 dysnomia = throw "dysnomia has been removed."; # added 2021-01-27
152 dwarf_fortress = dwarf-fortress; # added 2016-01-23
0153 elasticmq = throw "elasticmq has been removed in favour of elasticmq-server-bin"; # added 2021-01-17
154 emacsPackagesGen = emacsPackagesFor; # added 2018-08-18
155 emacsPackagesNgGen = emacsPackagesFor; # added 2018-08-18
···150 dydisnix = throw "dydisnix has been removed."; # added 2021-01-27
151 dysnomia = throw "dysnomia has been removed."; # added 2021-01-27
152 dwarf_fortress = dwarf-fortress; # added 2016-01-23
153+ dwm-git = throw "dwm-git has been removed from nixpkgs, as it had no updates for 2 years not serving it's purpose."; # added 2021-02-07
154 elasticmq = throw "elasticmq has been removed in favour of elasticmq-server-bin"; # added 2021-01-17
155 emacsPackagesGen = emacsPackagesFor; # added 2018-08-18
156 emacsPackagesNgGen = emacsPackagesFor; # added 2018-08-18