2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, perl, perlPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "timelapse-deflicker";
|
|
|
|
version = "0.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cyberang3l";
|
|
|
|
repo = "timelapse-deflicker";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0bbfnrdycrpyz7rqrql5ib9qszny7z5xpqp65c1mxqd2876gv960";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D timelapse-deflicker.pl $out/bin/timelapse-deflicker
|
|
|
|
wrapProgram $out/bin/timelapse-deflicker --set PERL5LIB $PERL5LIB
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = with perlPackages; [
|
2022-09-09 14:08:57 +00:00
|
|
|
perl
|
2021-08-05 21:33:18 +00:00
|
|
|
ImageMagick TermProgressBar ImageExifTool
|
2020-04-24 23:36:52 +00:00
|
|
|
FileType ClassMethodMaker
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple script to deflicker images taken for timelapses";
|
|
|
|
homepage = "https://github.com/cyberang3l/timelapse-deflicker";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ valeriangalliat ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|