16 src = fetchFromGitHub {
19 rev = "refs/tags/v${version}";
20 hash = "sha256-6pJvOn3sN6zfjt2dVZ/xH6pSXM0WgbG7au9tSVUGYys=";
23 webui = buildNpmPackage {
25 pname = "photofield-ui";
27 sourceRoot = "${src.name}/ui";
29 npmDepsHash = "sha256-trKcNuhRdiabFKMafOLtPg8x1bQHLOif6Hm4k5bTAYc=";
33 mv dist $out/share/photofield-ui
43 # Needed for Go 1.22 build support
45 name = "upgrade-pyroscope-go.patch";
46 url = "https://github.com/SmilyOrg/photofield/commit/681dcd48ab4113b0e99fe1a0d3638f0dfe985c05.patch";
47 hash = "sha256-JGb5KAI/SmR1kiiaPoSsAF7G4YWDFXj0K3Gjw0zA3Ro=";
51 vendorHash = "sha256-BnImE4wK2MDO21N5tT9Q9w+NkDpdBCEqUwzuH/xb6fg=";
54 cp -r ${webui}/share/photofield-ui ui/dist
60 "-X main.version=${version}"
66 doCheck = false; # tries to modify filesytem
68 nativeBuildInputs = [ makeWrapper ];
71 wrapProgram $out/bin/photofield \
72 --prefix PATH : "${lib.makeBinPath [exiftool ffmpeg]}"
75 passthru.tests.version = testers.testVersion {
77 command = "photofield -version";
81 description = "Experimental fast photo viewer";
82 homepage = "https://github.com/SmilyOrg/photofield";
83 license = licenses.mit;
84 mainProgram = "photofield";
85 maintainers = with maintainers; [ dit7ya ];