1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6rustPlatform.buildRustPackage rec {
7 pname = "dnglab";
8 version = "0.7.0";
9
10 src = fetchFromGitHub {
11 owner = "dnglab";
12 repo = "dnglab";
13 rev = "v${version}";
14 # darwin/linux hash mismatch
15 postFetch = ''
16 rm -rf "$out"/rawler/data/testdata/cameras/Canon/{"EOS REBEL T7i","EOS Rebel T7i"}
17 '';
18 hash = "sha256-nUZZgVDnFH+TYx9eltI7edsAiWYPkvc3wwnkSNXr0Jw=";
19 };
20
21 cargoHash = "sha256-n7p16cCk1sJaTBQ/E7e4BmPeMvcApzTGBrd+CmJ8E3k=";
22
23 postInstall = ''
24 rm $out/bin/benchmark $out/bin/identify
25 '';
26
27 meta = with lib; {
28 description = "Camera RAW to DNG file format converter";
29 homepage = "https://github.com/dnglab/dnglab";
30 license = licenses.lgpl21Only;
31 maintainers = with maintainers; [ dit7ya ];
32 mainProgram = "dnglab";
33 };
34}