2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libpulseaudio
|
|
|
|
, librsvg
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
|
|
|
, wayland
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2021-04-12 18:23:04 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-12 18:23:04 +00:00
|
|
|
pname = "kooha";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.0.1";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeaDve";
|
|
|
|
repo = "Kooha";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "05ynpwjdpl7zp9f17zhhvb59rbz3gd7hc0amla1g85ldgfxbgl00";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
hash = "sha256:16zf6vb001z7xdv2g4kpmb2vqsmaql2cpsx1rl9zrfhpl2z6frs9";
|
|
|
|
};
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
pkg-config
|
2021-12-06 16:07:01 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.rust.rustc
|
|
|
|
wayland
|
2021-04-12 18:23:04 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libpulseaudio
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
propagatedBuildInputs = [ python3.pkgs.pygobject3 ];
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
# Fixes https://github.com/NixOS/nixpkgs/issues/31168
|
|
|
|
postPatch = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
patchShebangs build-aux/meson_post_install.py
|
2022-01-26 04:04:25 +00:00
|
|
|
substituteInPlace meson.build --replace '>= 1.0.0-alpha.1' '>= 1.0.0'
|
2021-04-12 18:23:04 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-01 10:57:12 +00:00
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/kooha --help
|
|
|
|
'';
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple screen recorder";
|
|
|
|
homepage = "https://github.com/SeaDve/Kooha";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ austinbutler ];
|
|
|
|
};
|
|
|
|
}
|