mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
commit
d4c82cb93c
|
@ -1,47 +1,73 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitLab
|
|
||||||
, makeDesktopItem
|
|
||||||
, copyDesktopItems
|
|
||||||
, rustPlatform
|
|
||||||
, pkg-config
|
|
||||||
, clang
|
, clang
|
||||||
, libclang
|
, desktop-file-utils
|
||||||
|
, fetchFromGitLab
|
||||||
|
, fetchpatch
|
||||||
, glib
|
, glib
|
||||||
, gtk4
|
, gtk4
|
||||||
|
, libclang
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
, pipewire
|
, pipewire
|
||||||
|
, pkg-config
|
||||||
|
, rustPlatform
|
||||||
|
, stdenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "helvum";
|
pname = "helvum";
|
||||||
version = "0.3.1";
|
version = "0.3.2";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.freedesktop.org";
|
domain = "gitlab.freedesktop.org";
|
||||||
owner = "ryuukyu";
|
owner = "ryuukyu";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-f6+6Qicg5J6oWcafG4DF0HovTmF4r6yfw6p/3dJHmB4=";
|
sha256 = "sha256-Kt6gnMRTOVXqjAjEZKlylcGhzl52ZzPNVbJhwzLhzkM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-zGa6nAmOOrpiMr865J06Ez3L6lPL0j18/lW8lw1jPyU=";
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||||
|
inherit src;
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
hash = "sha256-kxJRY9GSPwnb431iYCfJdGcl5HjpFr2KkWrFDpGajp8=";
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ clang copyDesktopItems pkg-config ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ glib gtk4 pipewire ];
|
clang
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
rustPlatform.cargoSetupHook
|
||||||
|
rustPlatform.rust.cargo
|
||||||
|
rustPlatform.rust.rustc
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
desktop-file-utils
|
||||||
|
glib
|
||||||
|
gtk4
|
||||||
|
pipewire
|
||||||
|
];
|
||||||
|
|
||||||
LIBCLANG_PATH = "${libclang.lib}/lib";
|
LIBCLANG_PATH = "${libclang.lib}/lib";
|
||||||
|
|
||||||
desktopItems = makeDesktopItem {
|
patches = [
|
||||||
name = "Helvum";
|
# enables us to use gtk4-update-icon-cache instead of gtk3 one
|
||||||
exec = pname;
|
(fetchpatch {
|
||||||
desktopName = "Helvum";
|
url = "https://gitlab.freedesktop.org/ryuukyu/helvum/-/merge_requests/24.patch";
|
||||||
genericName = "Helvum";
|
sha256 = "sha256-WmI6taBL/6t587j06n0mwByQ8x0eUA5ECvGNjg2/vtk=";
|
||||||
categories = "AudioVideo;";
|
})
|
||||||
};
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs build-aux/cargo.sh
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A GTK patchbay for pipewire";
|
description = "A GTK patchbay for pipewire";
|
||||||
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
|
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ fufexan ];
|
maintainers = with maintainers; [ fufexan ];
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue