1 { lib, stdenv, python3, fetchFromGitHub, exiftool, makeWrapper }:
3 pythonEnv = python3.withPackages (p: with p; [ tqdm ]);
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "sha256-44UjxTbC2XK+NThvesROdd7aGP7zr7g7bQiQZv2TvvM=";
16 nativeBuildInputs = [ makeWrapper ];
21 # based roughly on https://github.com/ivandokov/phockup#linux-without-snap
22 mkdir -p $out/bin $out/opt
24 makeWrapper ${pythonEnv.interpreter} $out/bin/phockup --add-flags "$out/opt/phockup.py" --suffix PATH : ${lib.makeBinPath [ exiftool ]}
30 description = "Media sorting tool to organize photos and videos from your camera in folders by year, month and day";
31 homepage = "https://github.com/ivandokov/phockup";
32 license = licenses.mit;
33 maintainers = with maintainers; [ aanderse ];
34 mainProgram = "phockup";