fix ranked viewer

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-11-01 07:48:23 +01:00
parent 6f5e26e90f
commit 2bce3d0383
1 changed files with 16 additions and 11 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitLab, python3}: { stdenv, fetchFromGitLab, python3, bash, sxiv}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "rank_photos"; name = "rank_photos";
@ -8,22 +8,27 @@ stdenv.mkDerivation {
domain = "git.dodsorf.as"; domain = "git.dodsorf.as";
owner = "dandellion"; owner = "dandellion";
repo = "elo-rank-photos"; repo = "elo-rank-photos";
rev = "7db05f656515f89e837efdc2661363c131f3a6c0"; rev = "e7b3f8d4ee7069aba9622a1651d15834ddb060b5";
sha256 = "08fkv348vgivxpqrx36q7y0ax069i4ypp8ya46jnj8fnx40dzxzk"; sha256 = "1c23mfbwf1293vhq3nvqb9dbzxl2vizjjb2w1bw07bmfk9i4d62c";
}; };
buildInputs = [(python3.withPackages (pythonPackages: with pythonPackages; [ buildInputs = [
matplotlib (python3.withPackages (pythonPackages: with pythonPackages; [
tkinter matplotlib
numpy tkinter
exifread numpy
pillow exifread
]))]; pillow
]))
bash
sxiv
];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp ./rank_photos.py $out/bin/rank_photos 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 = { meta = {