Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
869 B
Nix
44 lines
869 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "u-config";
|
|
version = "0.33.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skeeto";
|
|
repo = "u-config";
|
|
tag = "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;
|
|
};
|
|
})
|