about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ko/kooha/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/ko/kooha/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/ko/kooha/package.nix78
1 files changed, 78 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ko/kooha/package.nix b/nixpkgs/pkgs/by-name/ko/kooha/package.nix
new file mode 100644
index 000000000000..bc9fdf70d9e5
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/ko/kooha/package.nix
@@ -0,0 +1,78 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, appstream-glib
+, cargo
+, desktop-file-utils
+, glib
+, gst_all_1
+, pipewire
+, gtk4
+, libadwaita
+, libpulseaudio
+, librsvg
+, meson
+, ninja
+, pkg-config
+, rustPlatform
+, rustc
+, wayland
+, wrapGAppsHook4
+}:
+
+stdenv.mkDerivation rec {
+  pname = "kooha";
+  version = "2.2.4";
+
+  src = fetchFromGitHub {
+    owner = "SeaDve";
+    repo = "Kooha";
+    rev = "v${version}";
+    hash = "sha256-D/+tsIfcXrlwwL6vSLRsiAp7wMVtIgzjNNd2uk+9bco=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-iDyhK2k2RB7CvtW+91isVzIFOl2/Loh+Bvneu4TGfn0=";
+  };
+
+  nativeBuildInputs = [
+    appstream-glib
+    desktop-file-utils
+    meson
+    ninja
+    pkg-config
+    rustPlatform.cargoSetupHook
+    cargo
+    rustc
+    wrapGAppsHook4
+  ];
+
+  buildInputs = [
+    glib
+    gst_all_1.gstreamer
+    gst_all_1.gst-plugins-good
+    gst_all_1.gst-plugins-base
+    gst_all_1.gst-plugins-ugly
+    gtk4
+    libadwaita
+    libpulseaudio
+    librsvg
+    wayland
+    pipewire
+  ];
+
+  installCheckPhase = ''
+    $out/bin/kooha --help
+  '';
+
+  meta = with lib; {
+    description = "Elegantly record your screen";
+    homepage = "https://github.com/SeaDve/Kooha";
+    license = licenses.gpl3Only;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ austinbutler ];
+    mainProgram = "kooha";
+  };
+}