mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
8384cfe455
all-packages.nix: move defaults to package files
31 lines
726 B
Nix
31 lines
726 B
Nix
{stdenv, fetchurl, libX11, libXinerama, libXft, patches ? []}:
|
|
|
|
let
|
|
name = "dwm-6.2";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.suckless.org/dwm/${name}.tar.gz";
|
|
sha256 = "03hirnj8saxnsfqiszwl2ds7p0avg20izv9vdqyambks00p2x44p";
|
|
};
|
|
|
|
buildInputs = [ libX11 libXinerama libXft ];
|
|
|
|
prePatch = ''sed -i "s@/usr/local@$out@" config.mk'';
|
|
|
|
# Allow users set their own list of patches
|
|
inherit patches;
|
|
|
|
buildPhase = " make ";
|
|
|
|
meta = {
|
|
homepage = https://suckless.org/;
|
|
description = "Dynamic window manager for X";
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; all;
|
|
};
|
|
}
|