mirror of
https://github.com/milahu/nur-packages.git
synced 2024-10-05 23:27:32 +03:00
cargo2nix: init at 0.11.0
This commit is contained in:
parent
131a77ce26
commit
c96bf8e573
@ -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
|
||||
|
46
pkgs/development/tools/rust/cargo2nix/cargo2nix.nix
Normal file
46
pkgs/development/tools/rust/cargo2nix/cargo2nix.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user