Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 880 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6 riffdiff, 7 testers, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "riffdiff"; 12 version = "3.4.0"; 13 14 src = fetchFromGitHub { 15 owner = "walles"; 16 repo = "riff"; 17 tag = version; 18 hash = "sha256-b2Jgj/QABRd6BN3PhTEK6pid74oRknx0/CUg2UfQWS8="; 19 }; 20 21 cargoHash = "sha256-Pt+SL3R28Gr54hgN3jZ1ZaH3L4JKEZz7hhtuX45P3IY="; 22 23 passthru = { 24 tests.version = testers.testVersion { package = riffdiff; }; 25 updateScript = nix-update-script { }; 26 }; 27 28 meta = { 29 description = "Diff filter highlighting which line parts have changed"; 30 homepage = "https://github.com/walles/riff"; 31 changelog = "https://github.com/walles/riff/releases/tag/${version}"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ 34 johnpyp 35 getchoo 36 ]; 37 mainProgram = "riff"; 38 }; 39}