16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-GYU0BR5X3s3SGmZEFMyK7m+zUa2i2E9krAbtk8dwPdg=";
23 webui = buildNpmPackage {
25 pname = "photofield-ui";
27 sourceRoot = "${src.name}/ui";
29 npmDepsHash = "sha256-ULl4wHEo/PP0Y0O5po7eRDd+T/UjkZhQGIj262WFtFU=";
33 mv dist $out/share/photofield-ui
42 vendorHash = "sha256-eN9syG9/QUA8yut3LaeIb+xlaNUvRAFspyqcCHv6oSA=";
45 cp -r ${webui}/share/photofield-ui ui/dist
51 "-X main.version=${version}"
57 doCheck = false; # tries to modify filesytem
59 nativeBuildInputs = [ makeWrapper ];
62 wrapProgram $out/bin/photofield \
63 --prefix PATH : "${lib.makeBinPath [exiftool ffmpeg]}"
67 updateScript = nix-update-script { };
68 tests.version = testers.testVersion {
70 command = "photofield -version";
75 description = "Experimental fast photo viewer";
76 homepage = "https://github.com/SmilyOrg/photofield";
77 license = licenses.mit;
78 mainProgram = "photofield";
79 maintainers = with maintainers; [ dit7ya ];