4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
86 lines
1.4 KiB
Nix
86 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, nix-update-script
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, desktop-file-utils
|
|
, appstream-glib
|
|
, pkgconfig
|
|
, txt2man
|
|
, gzip
|
|
, vala
|
|
, wrapGAppsHook
|
|
, gsettings-desktop-schemas
|
|
, gtk3
|
|
, glib
|
|
, cairo
|
|
, keybinder3
|
|
, ffmpeg_3
|
|
, python3
|
|
, libxml2
|
|
, gst_all_1
|
|
, which
|
|
, gifski
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "peek";
|
|
version = "1.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phw";
|
|
repo = "peek";
|
|
rev = version;
|
|
sha256 = "1xwlfizga6hvjqq127py8vabaphsny928ar7mwqj9cyqfl6fx41x";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
gettext
|
|
gzip
|
|
meson
|
|
ninja
|
|
libxml2
|
|
pkgconfig
|
|
txt2man
|
|
python3
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gst-plugins-good
|
|
gst_all_1.gst-plugins-ugly
|
|
keybinder3
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs build-aux/meson/postinstall.py data/man/build_man.sh
|
|
'';
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix PATH : ${stdenv.lib.makeBinPath [ which ffmpeg_3 gifski ]})
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script {
|
|
attrPath = pname;
|
|
};
|
|
};
|
|
|
|
|
|
meta = with 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 worldofpeace ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|