Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 981 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7 zlib, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "cargo-clone"; 12 version = "1.2.4"; 13 14 src = fetchFromGitHub { 15 owner = "janlikar"; 16 repo = "cargo-clone"; 17 rev = "v${version}"; 18 sha256 = "sha256-tAY4MUytFVa7kXLeOg4xak8XKGgApnEGWiK51W/7uDg="; 19 }; 20 21 cargoHash = "sha256-AFCCXZKm6XmiaayOqvGhMzjyMwAqVK1GZccWHWV5/9c="; 22 23 nativeBuildInputs = [ pkg-config ]; 24 25 buildInputs = [ 26 openssl 27 zlib 28 ]; 29 30 # requires internet access 31 doCheck = false; 32 33 meta = { 34 description = "Cargo subcommand to fetch the source code of a Rust crate"; 35 mainProgram = "cargo-clone"; 36 homepage = "https://github.com/janlikar/cargo-clone"; 37 changelog = "https://github.com/janlikar/cargo-clone/blob/v${version}/CHANGELOG.md"; 38 license = with lib.licenses; [ 39 asl20 40 mit 41 ]; 42 maintainers = with lib.maintainers; [ 43 figsoda 44 matthiasbeyer 45 janlikar 46 ]; 47 }; 48}