2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
2023-05-24 13:37:59 +00:00
|
|
|
, cargo
|
2021-12-06 16:07:01 +00:00
|
|
|
, 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
|
2023-05-24 13:37:59 +00:00
|
|
|
, rustc
|
2021-12-06 16:07:01 +00:00
|
|
|
, 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-12-28 21:21:41 +00:00
|
|
|
version = "2.2.3";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeaDve";
|
|
|
|
repo = "Kooha";
|
|
|
|
rev = "v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-vLgBuP0DncBIb05R3484WozS+Nl+S7YBJUYek2CkJkQ=";
|
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-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-NPh603/5yZDUdTegAzFvjRn5tuzyrcNzbbKQr6NxXso=";
|
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
|
2023-05-24 13:37:59 +00:00
|
|
|
cargo
|
|
|
|
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
|
2022-11-21 17:40:18 +00:00
|
|
|
gst_all_1.gst-plugins-good
|
2021-12-06 16:07:01 +00:00
|
|
|
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; {
|
2022-12-28 21:21:41 +00:00
|
|
|
description = "Elegantly record your screen";
|
2021-04-12 18:23:04 +00:00
|
|
|
homepage = "https://github.com/SeaDve/Kooha";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ austinbutler ];
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "kooha";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
}
|