From 2bce3d0383d4cb96212193321fc816a2617ad496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Fri, 1 Nov 2019 07:48:23 +0100 Subject: [PATCH] fix ranked viewer --- pkgs/rank_photos/default.nix | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/pkgs/rank_photos/default.nix b/pkgs/rank_photos/default.nix index b90ecfe..5138bd9 100644 --- a/pkgs/rank_photos/default.nix +++ b/pkgs/rank_photos/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitLab, python3}: +{ stdenv, fetchFromGitLab, python3, bash, sxiv}: stdenv.mkDerivation { name = "rank_photos"; @@ -8,22 +8,27 @@ stdenv.mkDerivation { domain = "git.dodsorf.as"; owner = "dandellion"; repo = "elo-rank-photos"; - rev = "7db05f656515f89e837efdc2661363c131f3a6c0"; - sha256 = "08fkv348vgivxpqrx36q7y0ax069i4ypp8ya46jnj8fnx40dzxzk"; + rev = "e7b3f8d4ee7069aba9622a1651d15834ddb060b5"; + sha256 = "1c23mfbwf1293vhq3nvqb9dbzxl2vizjjb2w1bw07bmfk9i4d62c"; }; - buildInputs = [(python3.withPackages (pythonPackages: with pythonPackages; [ - matplotlib - tkinter - numpy - exifread - pillow - ]))]; + buildInputs = [ + (python3.withPackages (pythonPackages: with pythonPackages; [ + matplotlib + tkinter + numpy + exifread + pillow + ])) + bash + sxiv + ]; installPhase = '' mkdir -p $out/bin cp ./rank_photos.py $out/bin/rank_photos - chmod +x $out/bin/rank_photos + cp ./view_ranked.sh $out/bin/view_ranked + chmod +x $out/bin/rank_photos $out/bin/view_ranked ''; meta = {