···11-{lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [], conf ? null}:
22-33-with lib;
11+{ lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [ ], conf ? null}:
4255-let
66- name = "dwm-6.2";
77-in
88-stdenv.mkDerivation {
99- inherit name;
33+stdenv.mkDerivation rec {
44+ pname = "dwm";
55+ version = "6.2";
106117 src = fetchurl {
1212- url = "https://dl.suckless.org/dwm/${name}.tar.gz";
88+ url = "https://dl.suckless.org/dwm/${pname}-${version}.tar.gz";
139 sha256 = "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p";
1410 };
15111612 buildInputs = [ libX11 libXinerama libXft ];
17131818- prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
1414+ prePatch = ''
1515+ sed -i "s@/usr/local@$out@" config.mk
1616+ '';
19172018 # Allow users set their own list of patches
2119 inherit patches;
22202321 # Allow users to set the config.def.h file containing the configuration
2424- postPatch = let configFile = if isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf;
2525- in optionalString (conf!=null) "cp ${configFile} config.def.h";
2222+ postPatch =
2323+ let
2424+ configFile =
2525+ if lib.isDerivation conf || builtins.isPath conf
2626+ then conf else writeText "config.def.h" conf;
2727+ in
2828+ lib.optionalString (conf != null) "cp ${configFile} config.def.h";
26292727- meta = {
2828- homepage = "https://suckless.org/";
2929- description = "Dynamic window manager for X";
3030- license = lib.licenses.mit;
3131- maintainers = with lib.maintainers; [viric];
3232- platforms = with lib.platforms; all;
3030+ meta = with lib; {
3131+ homepage = "https://dwm.suckless.org/";
3232+ description = "An extremely fast, small, and dynamic window manager for X";
3333+ longDescription = ''
3434+ dwm is a dynamic window manager for X. It manages windows in tiled,
3535+ monocle and floating layouts. All of the layouts can be applied
3636+ dynamically, optimising the environment for the application in use and the
3737+ task performed.
3838+ Windows are grouped by tags. Each window can be tagged with one or
3939+ multiple tags. Selecting certain tags displays all windows with these
4040+ tags.
4141+ '';
4242+ license = licenses.mit;
4343+ maintainers = with maintainers; [ viric ];
4444+ platforms = platforms.all;
3345 };
3446}
-36
pkgs/applications/window-managers/dwm/git.nix
···11-{ lib, stdenv, fetchgit, libX11, libXinerama, libXft, writeText, patches ? [ ]
22-, conf ? null }:
33-44-stdenv.mkDerivation {
55- pname = "dwm-git";
66- version = "20200303";
77-88- src = fetchgit {
99- url = "git://git.suckless.org/dwm";
1010- rev = "61bb8b2241d4db08bea4261c82e27cd9797099e7";
1111- sha256 = "1j3vly8dln35vnwnwwlaa8ql9fmnlmrv43jcyc8dbfhfxiw6f34l";
1212- };
1313-1414- buildInputs = [ libX11 libXinerama libXft ];
1515-1616- prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
1717-1818- # Allow users set their own list of patches
1919- inherit patches;
2020-2121- # Allow users to set the config.def.h file containing the configuration
2222- postPatch = let
2323- configFile = if lib.isDerivation conf || builtins.isPath conf then
2424- conf
2525- else
2626- writeText "config.def.h" conf;
2727- in lib.optionalString (conf != null) "cp ${configFile} config.def.h";
2828-2929- meta = with lib; {
3030- homepage = "https://suckless.org/";
3131- description = "Dynamic window manager for X, development version";
3232- license = licenses.mit;
3333- maintainers = with maintainers; [ xeji ];
3434- platforms = platforms.unix;
3535- };
3636-}
+1
pkgs/top-level/aliases.nix
···150150 dydisnix = throw "dydisnix has been removed."; # added 2021-01-27
151151 dysnomia = throw "dysnomia has been removed."; # added 2021-01-27
152152 dwarf_fortress = dwarf-fortress; # added 2016-01-23
153153+ 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
153154 elasticmq = throw "elasticmq has been removed in favour of elasticmq-server-bin"; # added 2021-01-17
154155 emacsPackagesGen = emacsPackagesFor; # added 2018-08-18
155156 emacsPackagesNgGen = emacsPackagesFor; # added 2018-08-18