2019-03-30 19:09:31 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, gettext, libxml2, pkgconfig, txt2man, vala_0_40, wrapGAppsHook
|
2018-04-21 14:06:23 +02:00
|
|
|
, gsettings-desktop-schemas, gtk3, keybinder3, ffmpeg
|
2017-11-29 08:50:40 +01:00
|
|
|
}:
|
2017-11-28 00:25:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-30 19:09:31 +01:00
|
|
|
pname = "peek";
|
2018-04-20 10:18:54 +02:00
|
|
|
version = "1.3.1";
|
2017-11-28 00:25:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phw";
|
2019-03-30 19:09:31 +01:00
|
|
|
repo = pname;
|
2017-11-28 00:25:21 +01:00
|
|
|
rev = version;
|
2018-04-20 10:18:54 +02:00
|
|
|
sha256 = "1fnvlklmg6s5rs3ql74isa5fgdkqqrpsyf8k2spxj520239l4vgb";
|
2017-11-28 00:25:21 +01:00
|
|
|
};
|
|
|
|
|
2018-04-21 14:06:23 +02:00
|
|
|
preConfigure = ''
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ ffmpeg ]})
|
|
|
|
'';
|
|
|
|
|
2019-03-30 19:09:31 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
gettext
|
|
|
|
pkgconfig
|
|
|
|
libxml2.bin
|
|
|
|
txt2man
|
|
|
|
vala_0_40 # See https://github.com/NixOS/nixpkgs/issues/58433
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2017-11-29 08:50:40 +01:00
|
|
|
|
2019-03-30 19:09:31 +01:00
|
|
|
buildInputs = [
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
|
|
|
keybinder3
|
|
|
|
];
|
2017-11-29 08:50:40 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-11-28 00:25:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/phw/peek;
|
|
|
|
description = "Simple animated GIF screen recorder with an easy to use interface";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ puffnfresh ];
|
2017-11-29 08:50:40 +01:00
|
|
|
platforms = platforms.linux;
|
2017-11-28 00:25:21 +01:00
|
|
|
};
|
|
|
|
}
|