2021-05-24 16:55:41 +01:00
|
|
|
{ lib
|
|
|
|
, clang
|
2021-12-10 23:42:26 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
2021-05-24 16:55:41 +01:00
|
|
|
, glib
|
|
|
|
, gtk4
|
2021-12-10 23:42:26 +00:00
|
|
|
, libclang
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-05-24 16:55:41 +01:00
|
|
|
, pipewire
|
2021-12-10 23:42:26 +00:00
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
2021-05-24 16:55:41 +01:00
|
|
|
}:
|
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-05-24 16:55:41 +01:00
|
|
|
pname = "helvum";
|
2021-12-10 23:42:26 +00:00
|
|
|
version = "0.3.2";
|
2021-05-24 16:55:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "ryuukyu";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-10 23:42:26 +00:00
|
|
|
sha256 = "sha256-Kt6gnMRTOVXqjAjEZKlylcGhzl52ZzPNVbJhwzLhzkM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
hash = "sha256-kxJRY9GSPwnb431iYCfJdGcl5HjpFr2KkWrFDpGajp8=";
|
2021-05-24 16:55:41 +01:00
|
|
|
};
|
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
clang
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.rust.rustc
|
|
|
|
];
|
2021-05-24 16:55:41 +01:00
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
buildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
pipewire
|
|
|
|
];
|
2021-05-24 16:55:41 +01:00
|
|
|
|
|
|
|
LIBCLANG_PATH = "${libclang.lib}/lib";
|
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
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 ];
|
2021-12-10 23:42:26 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2021-05-24 16:55:41 +01:00
|
|
|
};
|
|
|
|
}
|