nixpkgs/pkgs/by-name/re/recapp/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

89 lines
1.5 KiB
Nix

{
lib,
python3,
fetchFromGitHub,
appstream-glib,
desktop-file-utils,
gettext,
glib,
gobject-introspection,
gtk3,
gst_all_1,
libnotify,
librsvg,
meson,
ninja,
pkg-config,
slop,
wrapGAppsHook3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "recapp";
version = "1.1.1";
format = "other";
src = fetchFromGitHub {
owner = "amikha1lov";
repo = "RecApp";
rev = "v${version}";
sha256 = "08bpfcqgw0lj6j7y5b2i18kffawlzp6pfk4wdpmk29vwmgk9s9yc";
};
postPatch = ''
patchShebangs build-aux/meson
'';
nativeBuildInputs = [
appstream-glib
desktop-file-utils
gettext
glib
gtk3
meson
ninja
pkg-config
wrapGAppsHook3
gobject-introspection
];
buildInputs = [
libnotify
librsvg
gtk3
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
];
propagatedBuildInputs = with python3.pkgs; [
pulsectl
pydbus
pygobject3
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
"--prefix" "PATH" ":" "${
lib.makeBinPath [
gst_all_1.gstreamer.dev
slop
]
}"
)
'';
meta = with lib; {
description = "User friendly Open Source screencaster for Linux written in GTK";
homepage = "https://github.com/amikha1lov/RecApp";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
mainProgram = "recapp";
};
}