2021-05-24 15:55:41 +00:00
|
|
|
{ lib
|
|
|
|
, clang
|
2021-12-10 23:42:26 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
2021-05-24 15:55:41 +00:00
|
|
|
, glib
|
|
|
|
, gtk4
|
2021-12-10 23:42:26 +00:00
|
|
|
, libclang
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-05-24 15:55:41 +00:00
|
|
|
, pipewire
|
2021-12-10 23:42:26 +00:00
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
2021-05-24 15:55:41 +00:00
|
|
|
}:
|
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-05-24 15:55:41 +00:00
|
|
|
pname = "helvum";
|
2023-02-13 14:09:09 +00:00
|
|
|
version = "0.4.0";
|
2021-05-24 15:55:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
2022-02-12 11:00:56 +00:00
|
|
|
owner = "pipewire";
|
2021-05-24 15:55:41 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-02-13 14:09:09 +00:00
|
|
|
hash = "sha256-TvjO7fGobGmAltVHeXWyMtMLANdVWVGvBYq20JD3mMI=";
|
2021-12-10 23:42:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-02-13 14:09:09 +00:00
|
|
|
hash = "sha256-W5Imlut30cjV4A6TCjBFLbViB0CDUucNsvIUiCXqu7I=";
|
2021-05-24 15:55:41 +00:00
|
|
|
};
|
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
clang
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.rust.cargo
|
|
|
|
rustPlatform.rust.rustc
|
2022-02-13 12:00:00 +00:00
|
|
|
rustPlatform.bindgenHook
|
2021-12-10 23:42:26 +00:00
|
|
|
];
|
2021-05-24 15:55:41 +00:00
|
|
|
|
2021-12-10 23:42:26 +00:00
|
|
|
buildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
pipewire
|
|
|
|
];
|
2021-05-24 15:55:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A GTK patchbay for pipewire";
|
2022-02-12 11:00:56 +00:00
|
|
|
homepage = "https://gitlab.freedesktop.org/pipewire/helvum";
|
2021-05-24 15:55:41 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|