2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
2022-10-06 18:32:54 +00:00
|
|
|
, pipewire
|
2021-12-06 16:07:01 +00:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libpulseaudio
|
|
|
|
, librsvg
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, wayland
|
2022-10-06 18:32:54 +00:00
|
|
|
, wrapGAppsHook4
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
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";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.2.2";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeaDve";
|
|
|
|
repo = "Kooha";
|
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-HgouIMbwpmR/K1hPU7QDzeEtyi5hC66huvInkJFLS2w=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-rdxD9pys11QcUtufcZ/zCrviytyc8hIXJfsXg2JoaKE=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2021-12-06 16:07:01 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.rust.rustc
|
2022-10-06 18:32:54 +00:00
|
|
|
wrapGAppsHook4
|
2021-04-12 18:23:04 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
2022-09-09 14:08:57 +00:00
|
|
|
gst_all_1.gst-plugins-ugly
|
2021-12-06 16:07:01 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
libpulseaudio
|
|
|
|
librsvg
|
2022-10-06 18:32:54 +00:00
|
|
|
wayland
|
|
|
|
pipewire
|
2021-12-06 16:07:01 +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 ];
|
|
|
|
};
|
|
|
|
}
|