mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-07 20:53:22 +00:00
mixxc: init at 0.2.2 (#305497)
* mixxc: init at 0.2.2 * mixxc: update build inputs Removed build inputs that were not used in the build process Added build inputs for `wayland` and `X11` features * mixxc: use `buildFeatures`, enable all features by default * mixxc: use `wrapGAppsHook4` Fixes icons not showing up properly * mixxc: reformat using `nixfmt-rfc-style`
This commit is contained in:
parent
51c39ced2a
commit
8e6bd4aa5e
64
pkgs/by-name/mi/mixxc/package.nix
Normal file
64
pkgs/by-name/mi/mixxc/package.nix
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
rustPlatform,
|
||||||
|
fetchCrate,
|
||||||
|
pkg-config,
|
||||||
|
libpulseaudio,
|
||||||
|
gtk4-layer-shell,
|
||||||
|
gtk4,
|
||||||
|
wrapGAppsHook4,
|
||||||
|
libxcb,
|
||||||
|
installShellFiles,
|
||||||
|
enableWayland ? true,
|
||||||
|
enableSass ? true,
|
||||||
|
enableX11 ? true,
|
||||||
|
}:
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "mixxc";
|
||||||
|
version = "0.2.2";
|
||||||
|
|
||||||
|
src = fetchCrate {
|
||||||
|
pname = "mixxc";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-Y/9l8t6Vz7yq9T1AyoHnWmIcju1rfcV0S74hiK1fEjo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-l9inqqUiLObrqd/8pNobwBbLaiPJD39YK/38CWfDh+Q=";
|
||||||
|
|
||||||
|
cargoBuildFlags = [ "--locked" ];
|
||||||
|
buildFeatures = with lib; [
|
||||||
|
(optionals enableWayland "Wayland")
|
||||||
|
(optionals enableX11 "X11")
|
||||||
|
(optionals enableSass "Sass")
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
installShellFiles
|
||||||
|
wrapGAppsHook4
|
||||||
|
];
|
||||||
|
buildInputs = with lib; [
|
||||||
|
libpulseaudio
|
||||||
|
gtk4
|
||||||
|
(optionals enableWayland gtk4-layer-shell)
|
||||||
|
(optionals enableX11 libxcb)
|
||||||
|
];
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"man"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installManPage $src/doc/mixxc.1
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A minimalistic and customizable volume mixer";
|
||||||
|
homepage = "https://github.com/Elvyria/mixxc";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ daru-san ];
|
||||||
|
mainProgram = "mixxc";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user