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";
|
2022-02-12 11:00:56 +00:00
|
|
|
version = "0.3.4";
|
2021-05-24 16:55:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
2022-02-12 11:00:56 +00:00
|
|
|
owner = "pipewire";
|
2021-05-24 16:55:41 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-12 11:00:56 +00:00
|
|
|
sha256 = "0nhv6zw2zzxz2bg2zj32w1brywnm5lv6j3cvmmvwshc389z2k5x1";
|
2021-12-10 23:42:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2022-02-12 11:00:56 +00:00
|
|
|
hash = "sha256-EIHO9qVPIXgezfFOaarlTU0an762nFmX1ELbQuAZ7rY";
|
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
|
2022-02-13 12:00:00 +00:00
|
|
|
rustPlatform.bindgenHook
|
2021-12-10 23:42:26 +00:00
|
|
|
];
|
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
|
|
|
|
|
|
|
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 16:55:41 +01:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ fufexan ];
|
2021-12-24 06:06:21 +00:00
|
|
|
platforms = platforms.linux;
|
2021-05-24 16:55:41 +01:00
|
|
|
};
|
|
|
|
}
|