base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / u- / u-config / package.nix
blobdeeba46483b5606e999922e7d0edabc796fc9714
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   pkg-config,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "u-config";
10   version = "0.33.1";
12   src = fetchFromGitHub {
13     owner = "skeeto";
14     repo = "u-config";
15     rev = "refs/tags/v${finalAttrs.version}";
16     hash = "sha256-r1zcXKLqw/gK+9k3SX7OCBaZhvV2ya5VC9O3h+WdkyY=";
17   };
19   makeFlags = [
20     "CROSS=${stdenv.cc.targetPrefix}"
21     "CC=${lib.getExe stdenv.cc}"
22   ];
24   nativeBuildInputs = [ pkg-config ];
26   buildFlags = [ "pkg-config" ];
28   installPhase = ''
29     runHook preInstall
31     install -Dm755 pkg-config -t $out/bin
33     runHook postInstall
34   '';
36   meta = {
37     description = "Smaller, simpler, portable pkg-config clone";
38     homepage = "https://github.com/skeeto/u-config";
39     license = lib.licenses.unlicense;
40     maintainers = with lib.maintainers; [ sigmanificient ];
41     platforms = lib.platforms.all;
42   };