giph: init at 1.1.1

This commit is contained in:
legendofmiracles 2021-04-19 16:14:21 +02:00
parent bf7940d1a8
commit 3ee493146d
No known key found for this signature in database
GPG key ID: 19B082B3DEFE5451
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ stdenvNoCC
, lib
, fetchFromGitHub
, ffmpeg
, xdotool
, slop
, libnotify
, procps
, makeWrapper
}:
stdenvNoCC.mkDerivation rec {
pname = "giph";
version = "1.1.1";
src = fetchFromGitHub {
owner = "phisch";
repo = pname;
rev = version;
sha256 = "19l46m1f32b3bagzrhaqsfnl5n3wbrmg3sdy6fdss4y1yf6nqayk";
};
dontConfigure = true;
dontBuild = true;
installFlags = [ "PREFIX=${placeholder "out"}" ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/giph \
--prefix PATH : ${lib.makeBinPath [ ffmpeg xdotool libnotify slop procps ]}
'';
meta = with lib; {
homepage = "https://github.com/phisch/giph";
description = "Simple gif recorder";
license = licenses.mit;
maintainers = [ maintainers.legendofmiracles ];
platforms = platforms.linux;
};
}

View file

@ -2540,6 +2540,8 @@ in
gif-for-cli = callPackage ../tools/misc/gif-for-cli { }; gif-for-cli = callPackage ../tools/misc/gif-for-cli { };
giph = callPackage ../applications/video/giph { };
gir-rs = callPackage ../development/tools/gir { }; gir-rs = callPackage ../development/tools/gir { };
gist = callPackage ../tools/text/gist { }; gist = callPackage ../tools/text/gist { };