mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
44 lines
879 B
Nix
44 lines
879 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "u-config";
|
|
version = "0.33.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skeeto";
|
|
repo = "u-config";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-r1zcXKLqw/gK+9k3SX7OCBaZhvV2ya5VC9O3h+WdkyY=";
|
|
};
|
|
|
|
makeFlags = [
|
|
"CROSS=${stdenv.cc.targetPrefix}"
|
|
"CC=${lib.getExe stdenv.cc}"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildFlags = [ "pkg-config" ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 pkg-config -t $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Smaller, simpler, portable pkg-config clone";
|
|
homepage = "https://github.com/skeeto/u-config";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|