35 lines
831 B
Nix
Raw Permalink Normal View History

{
lib,
rustPlatform,
fetchFromGitHub,
2022-10-02 20:16:22 +05:30
}:
rustPlatform.buildRustPackage rec {
pname = "dnglab";
2025-06-01 20:49:47 +00:00
version = "0.7.0";
2022-10-02 20:16:22 +05:30
src = fetchFromGitHub {
owner = "dnglab";
2024-09-30 17:33:11 +02:00
repo = "dnglab";
rev = "v${version}";
2024-09-30 17:33:11 +02:00
# darwin/linux hash mismatch
postFetch = ''
rm -rf "$out"/rawler/data/testdata/cameras/Canon/{"EOS REBEL T7i","EOS Rebel T7i"}
'';
2025-06-01 20:49:47 +00:00
hash = "sha256-nUZZgVDnFH+TYx9eltI7edsAiWYPkvc3wwnkSNXr0Jw=";
2022-10-02 20:16:22 +05:30
};
2025-06-01 20:49:47 +00:00
cargoHash = "sha256-n7p16cCk1sJaTBQ/E7e4BmPeMvcApzTGBrd+CmJ8E3k=";
2022-10-02 20:16:22 +05:30
postInstall = ''
rm $out/bin/benchmark $out/bin/identify
'';
meta = with lib; {
description = "Camera RAW to DNG file format converter";
homepage = "https://github.com/dnglab/dnglab";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ dit7ya ];
2023-11-23 03:51:17 +01:00
mainProgram = "dnglab";
2022-10-02 20:16:22 +05:30
};
}