tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cargo-clone: init at 1.1.0
figsoda
3 years ago
538299fe
4b7ae82d
+44
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
rust
cargo-clone
default.nix
top-level
all-packages.nix
+41
pkgs/development/tools/rust/cargo-clone/default.nix
···
1
1
+
{ lib
2
2
+
, rustPlatform
3
3
+
, fetchFromGitHub
4
4
+
, pkg-config
5
5
+
, openssl
6
6
+
, stdenv
7
7
+
, Security
8
8
+
, SystemConfiguration
9
9
+
}:
10
10
+
11
11
+
rustPlatform.buildRustPackage rec {
12
12
+
pname = "cargo-clone";
13
13
+
version = "1.1.0";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "janlikar";
17
17
+
repo = pname;
18
18
+
rev = "v${version}";
19
19
+
sha256 = "1lfg47kw07k4r795n0iixl5cnrb13g74hqlbp8jzbypr255bc16q";
20
20
+
};
21
21
+
22
22
+
cargoSha256 = "sha256-rJcTl5fe3vkNNyLRvm7q5KmzyJXchh1/JuzK0GFhHLk=";
23
23
+
24
24
+
nativeBuildInputs = [ pkg-config ];
25
25
+
26
26
+
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
27
27
+
Security
28
28
+
SystemConfiguration
29
29
+
];
30
30
+
31
31
+
# requires internet access
32
32
+
doCheck = false;
33
33
+
34
34
+
meta = with lib; {
35
35
+
description = "A cargo subcommand to fetch the source code of a Rust crate";
36
36
+
homepage = "https://github.com/janlikar/cargo-clone";
37
37
+
changelog = "https://github.com/janlikar/cargo-clone/blob/v${version}/CHANGELOG.md";
38
38
+
license = with licenses; [ asl20 mit ];
39
39
+
maintainers = with maintainers; [ figsoda ];
40
40
+
};
41
41
+
}
+3
pkgs/top-level/all-packages.nix
···
14744
14744
cargo-c = callPackage ../development/tools/rust/cargo-c {
14745
14745
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
14746
14746
};
14747
14747
+
cargo-clone = callPackage ../development/tools/rust/cargo-clone {
14748
14748
+
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
14749
14749
+
};
14747
14750
cargo-criterion = callPackage ../development/tools/rust/cargo-criterion { };
14748
14751
cargo-deadlinks = callPackage ../development/tools/rust/cargo-deadlinks {
14749
14752
inherit (darwin.apple_sdk.frameworks) Security;