@@ -0,0 +1,43 @@
1+{ stdenvNoCC
2+, lib
3+, fetchFromGitHub
4+, ffmpeg
5+, xdotool
6+, slop
7+, libnotify
8+, procps
9+, makeWrapper
10+}:
11+
12+stdenvNoCC.mkDerivation rec {
13+ pname = "giph";
14+ version = "1.1.1";
15+
16+ src = fetchFromGitHub {
17+ owner = "phisch";
18+ repo = pname;
19+ rev = version;
20+ sha256 = "19l46m1f32b3bagzrhaqsfnl5n3wbrmg3sdy6fdss4y1yf6nqayk";
21+ };
22+
23+ dontConfigure = true;
24+
25+ dontBuild = true;
26+
27+ installFlags = [ "PREFIX=${placeholder "out"}" ];
28+
29+ nativeBuildInputs = [ makeWrapper ];
30+
31+ postInstall = ''
32+ wrapProgram $out/bin/giph \
33+ --prefix PATH : ${lib.makeBinPath [ ffmpeg xdotool libnotify slop procps ]}
34+ '';
35+
36+ meta = with lib; {
37+ homepage = "https://github.com/phisch/giph";
38+ description = "Simple gif recorder";
39+ license = licenses.mit;
40+ maintainers = [ maintainers.legendofmiracles ];
41+ platforms = platforms.linux;
42+ };
43+}