Skip to content

Commit

Permalink
Merge pull request #119871 from legendofmiracles/master
Browse files Browse the repository at this point in the history
giph: init at 1.1.1
  • Loading branch information
SuperSandro2000 committed Apr 19, 2021
2 parents 92f5c75 + 3ee4931 commit c92ca95
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/applications/video/giph/default.nix
@@ -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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -2540,6 +2540,8 @@ in

gif-for-cli = callPackage ../tools/misc/gif-for-cli { };

giph = callPackage ../applications/video/giph { };

gir-rs = callPackage ../development/tools/gir { };

gist = callPackage ../tools/text/gist { };
Expand Down

0 comments on commit c92ca95

Please sign in to comment.