1{ lib, fetchFromGitHub, rustPlatform, wfa2-lib }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "biodiff";
5 version = "1.2.1";
6
7 src = fetchFromGitHub {
8 owner = "8051Enthusiast";
9 repo = "biodiff";
10 rev = "v${version}";
11 hash = "sha256-ZLxjOV08sC5dKICvRUyL6FLMORkxwdLgNq7L45CDwa4=";
12 fetchSubmodules = true;
13 };
14
15 cargoHash = "sha256-LxkwhOxXkegdXLmtbNLIB6nOAeCbpvIwSXbTF6jBcHs=";
16
17 buildInputs = [ wfa2-lib ];
18
19 # default statically links wfa2
20 buildNoDefaultFeatures = true;
21 buildFeatures = [ "wfa2" ];
22
23 meta = with lib; {
24 description = "Hex diff viewer using alignment algorithms from biology";
25 homepage = "https://github.com/8051Enthusiast/biodiff";
26 changelog = "https://github.com/8051Enthusiast/biodiff/blob/v${version}/CHANGELOG";
27 license = licenses.mit;
28 maintainers = with maintainers; [ newam ];
29 };
30}