cargo2nix: init at 0.11.0

This commit is contained in:
Milan Hauth 2023-08-01 18:38:35 +02:00
parent 131a77ce26
commit c96bf8e573
2 changed files with 48 additions and 0 deletions

View File

@ -316,6 +316,8 @@ pkgs.lib.makeScope pkgs.newScope (self: let inherit (self) callPackage; in rec {
radicle-bin = callPackage ./pkgs/applications/version-management/radicle/radicle-bin.nix { };
cargo2nix = callPackage ./pkgs/development/tools/rust/cargo2nix/cargo2nix.nix { };
}
# based on https://github.com/dtzWill/nur-packages

View File

@ -0,0 +1,46 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, curl
, libgit2
, openssl
, zlib
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo2nix";
version = "0.11.0";
src = fetchFromGitHub {
owner = "cargo2nix";
repo = "cargo2nix";
rev = "v${version}";
hash = "sha256-b7ToXDqgTXsAWPluHEiFmiqaJwIrdSyJgyAOBfty5xo=";
};
cargoHash = "sha256-v352Jyyd/Hd3FXqf3bgGOh3Hfz37c1PIaJzHjsVXYsc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
curl
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Granular caching, development shell, Nix & Rust integration";
homepage = "https://github.com/cargo2nix/cargo2nix";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}