1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/applications/window-managers/windowlab/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

35 lines
959 B
Nix

{ stdenv, fetchurl, pkgconfig
, libX11, libXext, libXft }:
let version = "1.40"; in
stdenv.mkDerivation {
name = "windowlab-${version}";
src = fetchurl {
url = "http://nickgravgaard.com/windowlab/windowlab-${version}.tar";
sha256 = "1fx4jwq4s98p2wpvawsiww7d6568bpjgcjpks61dzfj8p2j32s4d";
};
nativeBuildInputs = [ pkgconfig ];
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 stdenv.lib;
{ description = "Small and simple stacking window manager";
homepage = "http://nickgravgaard.com/windowlab/";
license = licenses.gpl2;
maintainers = with maintainers; [ ehmry ];
platforms = platforms.linux;
};
}