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
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
click,
|
|
nurl,
|
|
nix-prefetch-git,
|
|
nix,
|
|
coreutils,
|
|
nixfmt,
|
|
makeWrapper,
|
|
}:
|
|
# Based on https://github.com/milahu/gclient2nix
|
|
# but with libwebrtc-specific changes.
|
|
let
|
|
nativeDeps = [
|
|
nurl
|
|
nix-prefetch-git
|
|
nix
|
|
coreutils
|
|
nixfmt
|
|
];
|
|
in
|
|
buildPythonPackage {
|
|
pname = "gclient2nix";
|
|
version = "0.2.0-unstable-2025-04-04";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WeetHet";
|
|
repo = "gclient2nix";
|
|
rev = "ec5fff1082cd4fff352e4c57baf9b1a7dbbcc94b";
|
|
hash = "sha256-BK8GUpuqFOeK5d5wKVFYCfR5f6jCrke/2xxoVlmKpRI=";
|
|
};
|
|
|
|
build-system = [
|
|
flit-core
|
|
];
|
|
|
|
dependencies = [
|
|
click
|
|
];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/gclient2nix \
|
|
--set PATH ${lib.makeBinPath nativeDeps}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Generate Nix expressions for projects based on the Google build tools";
|
|
homepage = "https://github.com/WeetHet/gclient2nix";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
WeetHet
|
|
];
|
|
mainProgram = "gclient2nix";
|
|
};
|
|
}
|