nixpkgs/pkgs/by-name/ko/kooha/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.3 KiB
Nix
Raw Normal View History

2021-11-01 00:38:39 +00:00
{ lib
, stdenv
, fetchFromGitHub
, appstream-glib
, cargo
2021-11-01 00:38:39 +00:00
, desktop-file-utils
, glib
, gst_all_1
2022-09-30 23:48:09 +01:00
, pipewire
2021-11-01 00:38:39 +00:00
, gtk4
, libadwaita
, libpulseaudio
, librsvg
, meson
, ninja
, pkg-config
, rustPlatform
, rustc
2021-11-01 00:38:39 +00:00
, wayland
2022-09-30 23:48:09 +01:00
, wrapGAppsHook4
2021-11-01 00:38:39 +00:00
}:
2021-04-11 22:16:24 +01:00
2021-11-01 00:38:39 +00:00
stdenv.mkDerivation rec {
2021-04-11 22:16:24 +01:00
pname = "kooha";
2024-06-26 08:47:26 +01:00
version = "2.3.0";
2021-04-11 22:16:24 +01:00
src = fetchFromGitHub {
owner = "SeaDve";
repo = "Kooha";
rev = "v${version}";
2024-06-26 08:47:26 +01:00
hash = "sha256-Z+PMSV6fipfHBrqGS24SOgGJS173Vct12sVzCGZL0IA=";
2021-04-11 22:16:24 +01:00
};
2021-11-01 00:38:39 +00:00
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2024-06-26 08:47:26 +01:00
hash = "sha256-m5y/VfjTJgK+/ZjsMo/9zPVxcV3kuwXb+HNdXR6hkV4=";
2021-11-01 00:38:39 +00:00
};
2021-04-11 22:16:24 +01:00
nativeBuildInputs = [
appstream-glib
desktop-file-utils
meson
ninja
pkg-config
2021-11-01 00:38:39 +00:00
rustPlatform.cargoSetupHook
cargo
rustc
2022-09-30 23:48:09 +01:00
wrapGAppsHook4
2021-04-11 22:16:24 +01:00
];
2021-11-01 00:38:39 +00:00
buildInputs = [
glib
gst_all_1.gstreamer
2022-11-16 14:23:34 +00:00
gst_all_1.gst-plugins-good
2021-11-01 00:38:39 +00:00
gst_all_1.gst-plugins-base
2022-09-03 02:27:52 +01:00
gst_all_1.gst-plugins-ugly
2021-11-01 00:38:39 +00:00
gtk4
libadwaita
libpulseaudio
librsvg
2022-09-30 23:48:09 +01:00
wayland
pipewire
2021-11-01 00:38:39 +00:00
];
2021-05-24 04:52:17 +01:00
installCheckPhase = ''
$out/bin/kooha --help
'';
2021-04-11 22:16:24 +01:00
meta = with lib; {
2022-12-26 02:17:08 +00:00
description = "Elegantly record your screen";
2021-04-11 22:16:24 +01:00
homepage = "https://github.com/SeaDve/Kooha";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ austinbutler ];
2023-08-04 23:11:04 +01:00
mainProgram = "kooha";
2021-04-11 22:16:24 +01:00
};
}