Merge pull request #144055 from austinbutler/kooha200
This commit is contained in:
commit
6999dbfe42
1 changed files with 44 additions and 22 deletions
|
@ -1,28 +1,40 @@
|
||||||
{ lib, fetchFromGitHub, appstream-glib, desktop-file-utils, glib
|
{ lib
|
||||||
, gobject-introspection, gst_all_1, gtk4, libadwaita, librsvg, meson, ninja
|
, stdenv
|
||||||
, pkg-config, python3, wrapGAppsHook }:
|
, fetchFromGitHub
|
||||||
|
, appstream-glib
|
||||||
|
, desktop-file-utils
|
||||||
|
, glib
|
||||||
|
, gobject-introspection
|
||||||
|
, gst_all_1
|
||||||
|
, gtk4
|
||||||
|
, libadwaita
|
||||||
|
, libpulseaudio
|
||||||
|
, librsvg
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, python3
|
||||||
|
, rustPlatform
|
||||||
|
, wayland
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "kooha";
|
pname = "kooha";
|
||||||
version = "1.2.1";
|
version = "2.0.1";
|
||||||
format = "other";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SeaDve";
|
owner = "SeaDve";
|
||||||
repo = "Kooha";
|
repo = "Kooha";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1qwbzdn0n1nxcfci1bhhkfchdhw5yz74fdvsa84cznyyx2jils8w";
|
sha256 = "05ynpwjdpl7zp9f17zhhvb59rbz3gd7hc0amla1g85ldgfxbgl00";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
glib
|
inherit src;
|
||||||
gobject-introspection
|
name = "${pname}-${version}";
|
||||||
gst_all_1.gstreamer
|
hash = "sha256:16zf6vb001z7xdv2g4kpmb2vqsmaql2cpsx1rl9zrfhpl2z6frs9";
|
||||||
gst_all_1.gst-plugins-base
|
};
|
||||||
gtk4
|
|
||||||
libadwaita
|
|
||||||
librsvg
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
appstream-glib
|
appstream-glib
|
||||||
|
@ -31,21 +43,31 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
ninja
|
ninja
|
||||||
python3
|
python3
|
||||||
pkg-config
|
pkg-config
|
||||||
|
rustPlatform.cargoSetupHook
|
||||||
|
rustPlatform.rust.cargo
|
||||||
|
rustPlatform.rust.rustc
|
||||||
|
wayland
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
gobject-introspection
|
||||||
|
gst_all_1.gstreamer
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gtk4
|
||||||
|
libadwaita
|
||||||
|
libpulseaudio
|
||||||
|
librsvg
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ python3.pkgs.pygobject3 ];
|
propagatedBuildInputs = [ python3.pkgs.pygobject3 ];
|
||||||
|
|
||||||
strictDeps = false;
|
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
|
# Fixes https://github.com/NixOS/nixpkgs/issues/31168
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x build-aux/meson/postinstall.py
|
patchShebangs build-aux/meson_post_install.py
|
||||||
patchShebangs build-aux/meson/postinstall.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
|
|
Loading…
Reference in a new issue