depot/third_party/nixpkgs/pkgs/tools/graphics/dnglab/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

33 lines
826 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "dnglab";
version = "0.6.3";
src = fetchFromGitHub {
owner = "dnglab";
repo = "dnglab";
rev = "v${version}";
# darwin/linux hash mismatch
postFetch = ''
rm -rf "$out"/rawler/data/testdata/cameras/Canon/{"EOS REBEL T7i","EOS Rebel T7i"}
'';
hash = "sha256-k0tKNtVDzE5vVi/953aEQihh+5BsVneqauTr9WRFFrY=";
};
cargoHash = "sha256-6qJFNfgWh3i1CpuM/QdLksVAFz4XIV8uT5oz5BZ3U30=";
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 ];
mainProgram = "dnglab";
};
}