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.
34 lines
844 B
Nix
34 lines
844 B
Nix
{ stdenv, fetchurl, cmake, pkg-config, polkit, automoc4, glib, qt4 }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "polkit-qt-1-qt4-0.112.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
|
|
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config automoc4 ];
|
|
|
|
propagatedBuildInputs = [ polkit glib qt4 ];
|
|
|
|
postFixup =
|
|
''
|
|
for i in $dev/lib/cmake/*/*.cmake; do
|
|
echo "fixing $i"
|
|
substituteInPlace $i \
|
|
--replace "\''${PACKAGE_PREFIX_DIR}/lib" $out/lib
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Qt wrapper around PolKit";
|
|
maintainers = [ maintainers.ttuegel ];
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl21;
|
|
};
|
|
}
|