Merge pull request #301492 from nokazn/feature/add-proto-package
proto: init at 0.32.2
This commit is contained in:
commit
5f84fef171
2 changed files with 58 additions and 0 deletions
|
@ -14429,6 +14429,12 @@
|
|||
githubId = 42322511;
|
||||
name = "Patryk Kwiatek";
|
||||
};
|
||||
nokazn = {
|
||||
email = "me@nokazn.me";
|
||||
github = "nokazn";
|
||||
githubId = 41154684;
|
||||
name = "nokazn";
|
||||
};
|
||||
nomeata = {
|
||||
email = "mail@joachim-breitner.de";
|
||||
github = "nomeata";
|
||||
|
|
52
pkgs/by-name/pr/proto/package.nix
Normal file
52
pkgs/by-name/pr/proto/package.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, darwin
|
||||
, libiconv
|
||||
, makeBinaryWrapper
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "proto";
|
||||
version = "0.32.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "moonrepo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-QxaVXggVfr3O26RwSuUx4qpabhWE9+ZFLKRin/ya2e4=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-j5wXmlauhrUnUVTj/KyqDrf1y9bq3ZInREZXIUQImVE=";
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
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/${pname} \
|
||||
--set PROTO_LOOKUP_DIR $out/bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue