nixpkgs-suyu/pkgs/applications/video/kooha/default.nix

63 lines
1.4 KiB
Nix
Raw Normal View History

2021-04-11 23:16:24 +02:00
{ lib, fetchFromGitHub, appstream-glib, desktop-file-utils, glib
2021-05-24 05:52:17 +02:00
, gobject-introspection, gst_all_1, gtk4, libadwaita, librsvg, meson, ninja
2021-04-11 23:16:24 +02:00
, pkg-config, python3, wrapGAppsHook }:
python3.pkgs.buildPythonApplication rec {
pname = "kooha";
2021-05-24 05:52:17 +02:00
version = "1.2.1";
2021-04-11 23:16:24 +02:00
format = "other";
src = fetchFromGitHub {
owner = "SeaDve";
repo = "Kooha";
rev = "v${version}";
2021-05-24 05:52:17 +02:00
sha256 = "1qwbzdn0n1nxcfci1bhhkfchdhw5yz74fdvsa84cznyyx2jils8w";
2021-04-11 23:16:24 +02:00
};
buildInputs = [
glib
gobject-introspection
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
2021-05-24 05:52:17 +02:00
gtk4
libadwaita
2021-04-11 23:16:24 +02:00
librsvg
];
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
python3
pkg-config
wrapGAppsHook
];
propagatedBuildInputs = [ python3.pkgs.pygobject3 ];
strictDeps = false;
buildPhase = ''
export GST_PLUGIN_SYSTEM_PATH_1_0="$out/lib/gstreamer-1.0/:$GST_PLUGIN_SYSTEM_PATH_1_0"
'';
# Fixes https://github.com/NixOS/nixpkgs/issues/31168
postPatch = ''
chmod +x build-aux/meson/postinstall.py
patchShebangs build-aux/meson/postinstall.py
'';
2021-05-24 05:52:17 +02:00
installCheckPhase = ''
$out/bin/kooha --help
'';
2021-04-11 23:16:24 +02:00
meta = with lib; {
description = "Simple screen recorder";
homepage = "https://github.com/SeaDve/Kooha";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ austinbutler ];
};
}