3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/helvum/default.nix

74 lines
1.4 KiB
Nix
Raw Normal View History

2021-05-24 16:55:41 +01:00
{ lib
, clang
, desktop-file-utils
, fetchFromGitLab
, fetchpatch
2021-05-24 16:55:41 +01:00
, glib
, gtk4
, libclang
, meson
, ninja
2021-05-24 16:55:41 +01:00
, pipewire
, pkg-config
, rustPlatform
, stdenv
2021-05-24 16:55:41 +01:00
}:
stdenv.mkDerivation rec {
2021-05-24 16:55:41 +01:00
pname = "helvum";
version = "0.3.2";
2021-05-24 16:55:41 +01:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "ryuukyu";
repo = pname;
rev = version;
sha256 = "sha256-Kt6gnMRTOVXqjAjEZKlylcGhzl52ZzPNVbJhwzLhzkM=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-kxJRY9GSPwnb431iYCfJdGcl5HjpFr2KkWrFDpGajp8=";
2021-05-24 16:55:41 +01:00
};
nativeBuildInputs = [
clang
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustPlatform.rust.cargo
rustPlatform.rust.rustc
];
2021-05-24 16:55:41 +01:00
buildInputs = [
desktop-file-utils
glib
gtk4
pipewire
];
2021-05-24 16:55:41 +01:00
LIBCLANG_PATH = "${libclang.lib}/lib";
patches = [
# enables us to use gtk4-update-icon-cache instead of gtk3 one
(fetchpatch {
url = "https://gitlab.freedesktop.org/ryuukyu/helvum/-/merge_requests/24.patch";
sha256 = "sha256-WmI6taBL/6t587j06n0mwByQ8x0eUA5ECvGNjg2/vtk=";
})
];
prePatch = ''
patchShebangs build-aux/cargo.sh
'';
2021-06-03 15:20:48 +01:00
2021-05-24 16:55:41 +01:00
meta = with lib; {
description = "A GTK patchbay for pipewire";
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fufexan ];
platforms = lib.platforms.linux;
2021-05-24 16:55:41 +01:00
};
}