Files
nixpkgs/pkgs/by-name/pr/proto/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
libiconv,
makeBinaryWrapper,
pkg-config,
}:
rustPlatform.buildRustPackage rec {
pname = "proto";
version = "0.50.4";
src = fetchFromGitHub {
owner = "moonrepo";
repo = "proto";
rev = "v${version}";
hash = "sha256-X448S7eGx60CgpZkV81bVuxAc6HuIRNeHJgKW4min/E=";
};
cargoHash = "sha256-PUNBq4VWufCeFdhI7zThEyDMA4UHpL95uVdv4uouxBQ=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
nativeBuildInputs = [
makeBinaryWrapper
pkg-config
];
# Tests requires network access
doCheck = false;
cargoBuildFlags = [
"--bin proto"
"--bin proto-shim"
];
postInstall = ''
# proto looks up a proto-shim executable file in $PROTO_LOOKUP_DIR
wrapProgram $out/bin/proto \
--set PROTO_LOOKUP_DIR $out/bin
'';
meta = {
description = "Pluggable multi-language version manager";
longDescription = ''
proto is a pluggable next-generation version manager for multiple programming languages. A unified toolchain.
'';
homepage = "https://moonrepo.dev/proto";
changelog = "https://github.com/moonrepo/proto/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nokazn ];
mainProgram = "proto";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
}