Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "diffr";
9 version = "0.1.5";
10
11 src = fetchFromGitHub {
12 owner = "mookid";
13 repo = "diffr";
14 rev = "v${version}";
15 sha256 = "sha256-ylZE2NtTXbGqsxE72ylEQCacTyxBO+/WgvEpoXd5OZI=";
16 };
17
18 cargoHash = "sha256-pbGfoEk8peWBA0F0EdiAJJtan74O5RD6TmNJUTY2ijA=";
19
20 preCheck = ''
21 export DIFFR_TESTS_BINARY_PATH=$releaseDir/diffr
22 '';
23
24 meta = with lib; {
25 description = "Yet another diff highlighting tool";
26 mainProgram = "diffr";
27 homepage = "https://github.com/mookid/diffr";
28 license = with licenses; [ mit ];
29 maintainers = [ ];
30 };
31}