nixpkgs/pkgs/applications/video/kooha/default.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 22:48:09 +00: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 22:48:09 +00:00
, wrapGAppsHook4
2021-11-01 00:38:39 +00:00
}:
2021-04-11 21:16:24 +00:00
2021-11-01 00:38:39 +00:00
stdenv.mkDerivation rec {
2021-04-11 21:16:24 +00:00
pname = "kooha";
2022-12-26 02:17:08 +00:00
version = "2.2.3";
2021-04-11 21:16:24 +00:00
src = fetchFromGitHub {
owner = "SeaDve";
repo = "Kooha";
rev = "v${version}";
2022-12-26 02:17:08 +00:00
hash = "sha256-vLgBuP0DncBIb05R3484WozS+Nl+S7YBJUYek2CkJkQ=";
2021-04-11 21:16:24 +00:00
};
2021-11-01 00:38:39 +00:00
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
2022-12-26 02:17:08 +00:00
hash = "sha256-NPh603/5yZDUdTegAzFvjRn5tuzyrcNzbbKQr6NxXso=";
2021-11-01 00:38:39 +00:00
};
2021-04-11 21:16:24 +00: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 22:48:09 +00:00
wrapGAppsHook4
2021-04-11 21:16:24 +00: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 01:27:52 +00:00
gst_all_1.gst-plugins-ugly
2021-11-01 00:38:39 +00:00
gtk4
libadwaita
libpulseaudio
librsvg
2022-09-30 22:48:09 +00:00
wayland
pipewire
2021-11-01 00:38:39 +00:00
];
2021-05-24 03:52:17 +00:00
installCheckPhase = ''
$out/bin/kooha --help
'';
2021-04-11 21:16:24 +00:00
meta = with lib; {
2022-12-26 02:17:08 +00:00
description = "Elegantly record your screen";
2021-04-11 21:16:24 +00:00
homepage = "https://github.com/SeaDve/Kooha";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ austinbutler ];
2023-08-04 22:11:04 +00:00
mainProgram = "kooha";
2021-04-11 21:16:24 +00:00
};
}