NUR/pkgs/rank_photos/default.nix

39 lines
864 B
Nix
Raw Normal View History

2019-11-01 07:48:23 +01:00
{ stdenv, fetchFromGitLab, python3, bash, sxiv}:
2019-10-31 18:57:34 +01:00
stdenv.mkDerivation {
name = "rank_photos";
version = "1.0.0";
src = fetchFromGitLab {
domain = "git.dodsorf.as";
owner = "dandellion";
repo = "elo-rank-photos";
2019-11-01 07:48:23 +01:00
rev = "e7b3f8d4ee7069aba9622a1651d15834ddb060b5";
sha256 = "1c23mfbwf1293vhq3nvqb9dbzxl2vizjjb2w1bw07bmfk9i4d62c";
2019-10-31 18:57:34 +01:00
};
2019-11-01 07:48:23 +01:00
buildInputs = [
(python3.withPackages (pythonPackages: with pythonPackages; [
matplotlib
tkinter
numpy
exifread
pillow
]))
bash
sxiv
];
2019-10-31 18:57:34 +01:00
installPhase = ''
mkdir -p $out/bin
cp ./rank_photos.py $out/bin/rank_photos
2019-11-01 07:48:23 +01:00
cp ./view_ranked.sh $out/bin/view_ranked
chmod +x $out/bin/rank_photos $out/bin/view_ranked
2019-10-31 18:57:34 +01:00
'';
meta = {
description = "Compare and rank images by select which one is best and assigning elo ranking.";
};
}