summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-04-12 02:23:56 +0200
committerGitHub <noreply@github.com>2021-04-12 02:23:56 +0200
commit567960e5e89bb84651e11b69ba90320c9bbc3f5a (patch)
tree30c76329950f87b24e28677bce96fcfff9ab0278
parent82bcb97e1bc6b90ece62687e33a1b44f6830daa1 (diff)
parent77a2fadc4be28274a63d8fbf85f7abe780b18a54 (diff)
downloadnixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.tar
nixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.tar.gz
nixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.tar.bz2
nixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.tar.lz
nixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.tar.xz
nixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.tar.zst
nixpkgs-567960e5e89bb84651e11b69ba90320c9bbc3f5a.zip
Merge pull request #119102 from austinbutler/kooha
kooha: init at 1.1.1
-rw-r--r--pkgs/applications/video/kooha/default.nix58
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/applications/video/kooha/default.nix b/pkgs/applications/video/kooha/default.nix
new file mode 100644
index 00000000000..0a3de27f53e
--- /dev/null
+++ b/pkgs/applications/video/kooha/default.nix
@@ -0,0 +1,58 @@
+{ lib, fetchFromGitHub, appstream-glib, desktop-file-utils, glib
+, gobject-introspection, gst_all_1, gtk3, libhandy, librsvg, meson, ninja
+, pkg-config, python3, wrapGAppsHook }:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "kooha";
+  version = "1.1.1";
+  format = "other";
+
+  src = fetchFromGitHub {
+    owner = "SeaDve";
+    repo = "Kooha";
+    rev = "v${version}";
+    sha256 = "05515xccs6y3wy28a6lkyn2jgi0fli53548l8qs73li8mdbxzd4c";
+  };
+
+  buildInputs = [
+    glib
+    gobject-introspection
+    gst_all_1.gstreamer
+    gst_all_1.gst-plugins-base
+    gtk3
+    libhandy
+    librsvg
+  ];
+
+  nativeBuildInputs = [
+    appstream-glib
+    desktop-file-utils
+    meson
+    ninja
+    python3
+    pkg-config
+    wrapGAppsHook
+  ];
+
+  propagatedBuildInputs = [ python3.pkgs.pygobject3 ];
+
+  strictDeps = false;
+
+  buildPhase = ''
+    export GST_PLUGIN_SYSTEM_PATH_1_0="$out/lib/gstreamer-1.0/:$GST_PLUGIN_SYSTEM_PATH_1_0"
+  '';
+
+  # Fixes https://github.com/NixOS/nixpkgs/issues/31168
+  postPatch = ''
+    chmod +x build-aux/meson/postinstall.py
+    patchShebangs build-aux/meson/postinstall.py
+  '';
+
+  meta = with lib; {
+    description = "Simple screen recorder";
+    homepage = "https://github.com/SeaDve/Kooha";
+    license = licenses.gpl3Only;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ austinbutler ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ee30924e1d7..dcf5529eee4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -23920,6 +23920,8 @@ in
 
   konversation = libsForQt5.callPackage ../applications/networking/irc/konversation { };
 
+  kooha = callPackage ../applications/video/kooha { };
+
   kotatogram-desktop = libsForQt514.callPackage ../applications/networking/instant-messengers/telegram/kotatogram-desktop { };
 
   kpt = callPackage ../applications/networking/cluster/kpt { };