forked from mirrors/nixpkgs
Merge pull request #112299 from 06kellyjac/dwm
This commit is contained in:
commit
bc89cb01c3
|
@ -1,34 +1,46 @@
|
|||
{lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [], conf ? null}:
|
||||
{ lib, stdenv, fetchurl, libX11, libXinerama, libXft, writeText, patches ? [ ], conf ? null}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
name = "dwm-6.2";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit name;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dwm";
|
||||
version = "6.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dl.suckless.org/dwm/${name}.tar.gz";
|
||||
url = "https://dl.suckless.org/dwm/${pname}-${version}.tar.gz";
|
||||
sha256 = "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libXinerama libXft ];
|
||||
|
||||
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
|
||||
prePatch = ''
|
||||
sed -i "s@/usr/local@$out@" config.mk
|
||||
'';
|
||||
|
||||
# Allow users set their own list of patches
|
||||
inherit patches;
|
||||
|
||||
# Allow users to set the config.def.h file containing the configuration
|
||||
postPatch = let configFile = if isDerivation conf || builtins.isPath conf then conf else writeText "config.def.h" conf;
|
||||
in optionalString (conf!=null) "cp ${configFile} config.def.h";
|
||||
postPatch =
|
||||
let
|
||||
configFile =
|
||||
if lib.isDerivation conf || builtins.isPath conf
|
||||
then conf else writeText "config.def.h" conf;
|
||||
in
|
||||
lib.optionalString (conf != null) "cp ${configFile} config.def.h";
|
||||
|
||||
meta = {
|
||||
homepage = "https://suckless.org/";
|
||||
description = "Dynamic window manager for X";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [viric];
|
||||
platforms = with lib.platforms; all;
|
||||
meta = with lib; {
|
||||
homepage = "https://dwm.suckless.org/";
|
||||
description = "An extremely fast, small, and dynamic window manager for X";
|
||||
longDescription = ''
|
||||
dwm is a dynamic window manager for X. It manages windows in tiled,
|
||||
monocle and floating layouts. All of the layouts can be applied
|
||||
dynamically, optimising the environment for the application in use and the
|
||||
task performed.
|
||||
Windows are grouped by tags. Each window can be tagged with one or
|
||||
multiple tags. Selecting certain tags displays all windows with these
|
||||
tags.
|
||||
'';
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ viric ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
{ lib, stdenv, fetchgit, libX11, libXinerama, libXft, writeText, patches ? [ ]
|
||||
, conf ? null }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "dwm-git";
|
||||
version = "20200303";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://git.suckless.org/dwm";
|
||||
rev = "61bb8b2241d4db08bea4261c82e27cd9797099e7";
|
||||
sha256 = "1j3vly8dln35vnwnwwlaa8ql9fmnlmrv43jcyc8dbfhfxiw6f34l";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libXinerama libXft ];
|
||||
|
||||
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
|
||||
|
||||
# Allow users set their own list of patches
|
||||
inherit patches;
|
||||
|
||||
# Allow users to set the config.def.h file containing the configuration
|
||||
postPatch = let
|
||||
configFile = if lib.isDerivation conf || builtins.isPath conf then
|
||||
conf
|
||||
else
|
||||
writeText "config.def.h" conf;
|
||||
in lib.optionalString (conf != null) "cp ${configFile} config.def.h";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://suckless.org/";
|
||||
description = "Dynamic window manager for X, development version";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ xeji ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -150,6 +150,7 @@ mapAliases ({
|
|||
dydisnix = throw "dydisnix has been removed."; # added 2021-01-27
|
||||
dysnomia = throw "dysnomia has been removed."; # added 2021-01-27
|
||||
dwarf_fortress = dwarf-fortress; # added 2016-01-23
|
||||
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
|
||||
elasticmq = throw "elasticmq has been removed in favour of elasticmq-server-bin"; # added 2021-01-17
|
||||
emacsPackagesGen = emacsPackagesFor; # added 2018-08-18
|
||||
emacsPackagesNgGen = emacsPackagesFor; # added 2018-08-18
|
||||
|
|
|
@ -21680,14 +21680,7 @@ in
|
|||
inherit (gnome2) libgnomeui;
|
||||
};
|
||||
|
||||
dwm = callPackage ../applications/window-managers/dwm {
|
||||
patches = config.dwm.patches or [];
|
||||
};
|
||||
|
||||
dwm-git = callPackage ../applications/window-managers/dwm/git.nix {
|
||||
patches = config.dwm.patches or [];
|
||||
conf = config.dwm.conf or null;
|
||||
};
|
||||
dwm = callPackage ../applications/window-managers/dwm { };
|
||||
|
||||
dwm-status = callPackage ../applications/window-managers/dwm/dwm-status.nix { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue