nixpkgs/pkgs/applications/audio/helvum/default.nix

74 lines
1.4 KiB
Nix
Raw Normal View History

2021-05-24 15:55:41 +00:00
{ lib
, clang
, desktop-file-utils
, fetchFromGitLab
, fetchpatch
2021-05-24 15:55:41 +00:00
, glib
, gtk4
, libclang
, meson
, ninja
2021-05-24 15:55:41 +00:00
, pipewire
, pkg-config
, rustPlatform
, stdenv
2021-05-24 15:55:41 +00:00
}:
stdenv.mkDerivation rec {
2021-05-24 15:55:41 +00:00
pname = "helvum";
version = "0.3.2";
2021-05-24 15:55:41 +00: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 15:55:41 +00:00
};
nativeBuildInputs = [
clang
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustPlatform.rust.cargo
rustPlatform.rust.rustc
];
2021-05-24 15:55:41 +00:00
buildInputs = [
desktop-file-utils
glib
gtk4
pipewire
];
2021-05-24 15:55:41 +00: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=";
})
];
2021-12-24 06:06:21 +00:00
postPatch = ''
patchShebangs build-aux/cargo.sh
'';
2021-06-03 14:20:48 +00:00
2021-05-24 15:55:41 +00:00
meta = with lib; {
description = "A GTK patchbay for pipewire";
homepage = "https://gitlab.freedesktop.org/ryuukyu/helvum";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fufexan ];
2021-12-24 06:06:21 +00:00
platforms = platforms.linux;
2021-05-24 15:55:41 +00:00
};
}