mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +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.
30 lines
775 B
Nix
30 lines
775 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "elementary-cmake-modules";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = "cmake-modules";
|
|
rev = "319ec5336e9f05f3f22b886cc2053ef3d4b6599e";
|
|
sha256 = "191hhvdxyqvh9axzndaqld7vrmv7xkn0czks908zhb2zpjhv9rby";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace ' ''${CMAKE_ROOT}/Modules' " $out/lib/cmake"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ cmake pkg-config ];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = with lib; {
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
homepage = "https://github.com/elementary/cmake-modules";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.samdroid-apps ];
|
|
};
|
|
}
|