Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 33 lines 811 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, darwin 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "rustypaste-cli"; 10 version = "0.4.0"; 11 12 src = fetchFromGitHub { 13 owner = "orhun"; 14 repo = "rustypaste-cli"; 15 rev = "v${version}"; 16 hash = "sha256-Jl7fytDIW6MLY6VX7rDuX9PcZaIqENQbUTMUJKCa8Mg="; 17 }; 18 19 cargoHash = "sha256-hICwrgzNpyYmNW1gEKgTsSjWyqCaOHc4X37O0R2oSzY="; 20 21 buildInputs = lib.optionals stdenv.isDarwin [ 22 darwin.apple_sdk.frameworks.Security 23 ]; 24 25 meta = with lib; { 26 description = "A CLI tool for rustypaste"; 27 homepage = "https://github.com/orhun/rustypaste-cli"; 28 changelog = "https://github.com/orhun/rustypaste-cli/blob/${src.rev}/CHANGELOG.md"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ figsoda ]; 31 mainProgram = "rpaste"; 32 }; 33}