mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
1002 B
Nix
38 lines
1002 B
Nix
{ lib, stdenv, fetchurl, pkg-config
|
|
, libX11, libXext, libXft }:
|
|
|
|
let version = "1.40"; in
|
|
stdenv.mkDerivation {
|
|
pname = "windowlab";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "http://nickgravgaard.com/windowlab/windowlab-${version}.tar";
|
|
sha256 = "1fx4jwq4s98p2wpvawsiww7d6568bpjgcjpks61dzfj8p2j32s4d";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libX11 libXext libXft ];
|
|
|
|
postPatch =
|
|
''
|
|
mv Makefile Makefile.orig
|
|
echo \
|
|
"
|
|
DEFINES += -DXFT
|
|
EXTRA_INC += $(pkg-config --cflags xft)
|
|
EXTRA_LIBS += $(pkg-config --libs xft)
|
|
" > Makefile
|
|
sed "s|/usr/local|$out|g" Makefile.orig >> Makefile
|
|
'';
|
|
|
|
meta = with lib;
|
|
{ description = "Small and simple stacking window manager";
|
|
homepage = "http://nickgravgaard.com/windowlab/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ ehmry ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "windowlab";
|
|
};
|
|
}
|