kooha: 1.2.1 -> 2.0.1

+44 -22
+44 -22
pkgs/applications/video/kooha/default.nix
··· 1 - { lib, fetchFromGitHub, appstream-glib, desktop-file-utils, glib 2 - , gobject-introspection, gst_all_1, gtk4, libadwaita, librsvg, meson, ninja 3 - , pkg-config, python3, wrapGAppsHook }: 4 5 - python3.pkgs.buildPythonApplication rec { 6 pname = "kooha"; 7 - version = "1.2.1"; 8 - format = "other"; 9 10 src = fetchFromGitHub { 11 owner = "SeaDve"; 12 repo = "Kooha"; 13 rev = "v${version}"; 14 - sha256 = "1qwbzdn0n1nxcfci1bhhkfchdhw5yz74fdvsa84cznyyx2jils8w"; 15 }; 16 17 - buildInputs = [ 18 - glib 19 - gobject-introspection 20 - gst_all_1.gstreamer 21 - gst_all_1.gst-plugins-base 22 - gtk4 23 - libadwaita 24 - librsvg 25 - ]; 26 27 nativeBuildInputs = [ 28 appstream-glib ··· 31 ninja 32 python3 33 pkg-config 34 wrapGAppsHook 35 ]; 36 37 propagatedBuildInputs = [ python3.pkgs.pygobject3 ]; 38 39 strictDeps = false; 40 41 - buildPhase = '' 42 - export GST_PLUGIN_SYSTEM_PATH_1_0="$out/lib/gstreamer-1.0/:$GST_PLUGIN_SYSTEM_PATH_1_0" 43 - ''; 44 - 45 # Fixes https://github.com/NixOS/nixpkgs/issues/31168 46 postPatch = '' 47 - chmod +x build-aux/meson/postinstall.py 48 - patchShebangs build-aux/meson/postinstall.py 49 ''; 50 51 installCheckPhase = ''
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , appstream-glib 5 + , desktop-file-utils 6 + , glib 7 + , gobject-introspection 8 + , gst_all_1 9 + , gtk4 10 + , libadwaita 11 + , libpulseaudio 12 + , librsvg 13 + , meson 14 + , ninja 15 + , pkg-config 16 + , python3 17 + , rustPlatform 18 + , wayland 19 + , wrapGAppsHook 20 + }: 21 22 + stdenv.mkDerivation rec { 23 pname = "kooha"; 24 + version = "2.0.1"; 25 26 src = fetchFromGitHub { 27 owner = "SeaDve"; 28 repo = "Kooha"; 29 rev = "v${version}"; 30 + sha256 = "05ynpwjdpl7zp9f17zhhvb59rbz3gd7hc0amla1g85ldgfxbgl00"; 31 }; 32 33 + cargoDeps = rustPlatform.fetchCargoTarball { 34 + inherit src; 35 + name = "${pname}-${version}"; 36 + hash = "sha256:16zf6vb001z7xdv2g4kpmb2vqsmaql2cpsx1rl9zrfhpl2z6frs9"; 37 + }; 38 39 nativeBuildInputs = [ 40 appstream-glib ··· 43 ninja 44 python3 45 pkg-config 46 + rustPlatform.cargoSetupHook 47 + rustPlatform.rust.cargo 48 + rustPlatform.rust.rustc 49 + wayland 50 wrapGAppsHook 51 ]; 52 53 + buildInputs = [ 54 + glib 55 + gobject-introspection 56 + gst_all_1.gstreamer 57 + gst_all_1.gst-plugins-base 58 + gtk4 59 + libadwaita 60 + libpulseaudio 61 + librsvg 62 + ]; 63 + 64 propagatedBuildInputs = [ python3.pkgs.pygobject3 ]; 65 66 strictDeps = false; 67 68 # Fixes https://github.com/NixOS/nixpkgs/issues/31168 69 postPatch = '' 70 + patchShebangs build-aux/meson_post_install.py 71 ''; 72 73 installCheckPhase = ''