mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{ lib, stdenv, fetchurl, unzip, pkg-config, libixp_hg, txt2tags, dash, python, which
|
|
, libX11 , libXrender, libXext, libXinerama, libXrandr, libXft }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
rev = "2823";
|
|
version = "hg-2012-12-09";
|
|
pname = "wmii";
|
|
|
|
src = fetchurl {
|
|
url = "https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/wmii/source-archive.zip";
|
|
sha256 = "1wmkq14zvmfrmydl8752xz852cy7agrx3qp4fy2cc5asb2r9abaz";
|
|
};
|
|
|
|
# for dlopen-ing
|
|
patchPhase = ''
|
|
substituteInPlace lib/libstuff/x11/xft.c --replace "libXft.so" "$(pkg-config --variable=libdir xft)/libXft.so.2"
|
|
substituteInPlace cmd/wmii.sh.sh --replace "\$(which which)" "${which}/bin/which"
|
|
'';
|
|
|
|
configurePhase = ''
|
|
for file in $(grep -lr '#!.*sh'); do
|
|
sed -i 's|#!.*sh|#!${dash}/bin/dash|' $file
|
|
done
|
|
|
|
cat <<EOF >> config.mk
|
|
PREFIX = $out
|
|
LIBIXP = ${libixp_hg}/lib/libixp.a
|
|
BINSH = ${dash}/bin/dash
|
|
EOF
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ unzip libixp_hg txt2tags dash python which
|
|
libX11 libXrender libXext libXinerama libXrandr libXft ];
|
|
|
|
# For some reason including mercurial in buildInputs did not help
|
|
makeFlags = [ "WMII_HGVERSION=hg${rev}" ];
|
|
|
|
meta = {
|
|
homepage = "https://suckless.org/"; # https://wmii.suckless.org/ does not exist anymore
|
|
description = "A small window manager controlled by a 9P filesystem";
|
|
maintainers = with lib.maintainers; [ kovirobi ];
|
|
license = lib.licenses.mit;
|
|
inherit version;
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|