Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
79 lines
1.8 KiB
Nix
79 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
libxkbcommon,
|
|
pipewire,
|
|
vulkan-loader,
|
|
wayland,
|
|
libGL,
|
|
xorg,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "coppwr";
|
|
version = "1.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dimtpap";
|
|
repo = "coppwr";
|
|
tag = version;
|
|
hash = "sha256-9oFWX44jToJh0vJaDV/KZXVNQgLG0lr1iA+0hInAhLA=";
|
|
};
|
|
|
|
cargoHash = "sha256-Fq8I1pt83yqrjiA4VXA+z7o2LFTac2SonAwTycQRP8M=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = [
|
|
libxkbcommon
|
|
pipewire
|
|
vulkan-loader
|
|
wayland
|
|
libGL
|
|
xorg.libXcursor
|
|
xorg.libXi
|
|
xorg.libX11
|
|
];
|
|
|
|
preBuild = ''
|
|
mkdir -p $out/share/{applications,icons/hicolor/scalable/apps,metainfo}
|
|
|
|
install -m 444 \
|
|
-D $src/assets/io.github.dimtpap.coppwr.desktop \
|
|
-t $out/share/applications
|
|
install -m 444 \
|
|
-D $src/assets/io.github.dimtpap.coppwr.metainfo.xml \
|
|
-t $out/share/metainfo
|
|
cp $src/assets/icon/scalable.svg $out/share/icons/hicolor/scalable/apps/io.github.dimtpap.coppwr.svg
|
|
for size in 32 48 64 128 256 512; do
|
|
mkdir -p $out/share/icons/hicolor/"$size"x"$size"/apps
|
|
cp $src/assets/icon/"$size".png $out/share/icons/hicolor/"$size"x"$size"/apps/io.github.dimtpap.coppwr.png
|
|
done
|
|
'';
|
|
|
|
postFixup = ''
|
|
patchelf $out/bin/coppwr \
|
|
--add-rpath ${
|
|
lib.makeLibraryPath [
|
|
libGL
|
|
libxkbcommon
|
|
wayland
|
|
]
|
|
}
|
|
'';
|
|
|
|
meta = {
|
|
description = "Low level control GUI for the PipeWire multimedia server";
|
|
homepage = "https://github.com/dimtpap/coppwr";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ ravenz46 ];
|
|
mainProgram = "coppwr";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|