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
109 lines
2.1 KiB
Nix
109 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
cmake,
|
|
just,
|
|
libcosmicAppHook,
|
|
pkg-config,
|
|
expat,
|
|
libinput,
|
|
fontconfig,
|
|
freetype,
|
|
pipewire,
|
|
pulseaudio,
|
|
udev,
|
|
util-linux,
|
|
cosmic-randr,
|
|
xkeyboard_config,
|
|
nix-update-script,
|
|
nixosTests,
|
|
}:
|
|
let
|
|
libcosmicAppHook' = (libcosmicAppHook.__spliced.buildHost or libcosmicAppHook).override {
|
|
includeSettings = false;
|
|
};
|
|
in
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "cosmic-settings";
|
|
version = "1.0.0-beta.1.1";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitHub {
|
|
owner = "pop-os";
|
|
repo = "cosmic-settings";
|
|
tag = "epoch-${finalAttrs.version}";
|
|
hash = "sha256-Yn5CSp/vsLMbkcQ7mCDw/ErgkSCyEvkwNvWqupVUkZ4=";
|
|
};
|
|
|
|
cargoHash = "sha256-dHyUTV5txSLWEDE7Blplz8CBvyuUmYNNr1kbifujHKk=";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
just
|
|
libcosmicAppHook'
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
util-linux
|
|
];
|
|
|
|
buildInputs = [
|
|
expat
|
|
fontconfig
|
|
freetype
|
|
libinput
|
|
pipewire
|
|
pulseaudio
|
|
udev
|
|
];
|
|
|
|
dontUseJustBuild = true;
|
|
dontUseJustCheck = true;
|
|
|
|
justFlags = [
|
|
"--set"
|
|
"prefix"
|
|
(placeholder "out")
|
|
"--set"
|
|
"cargo-target-dir"
|
|
"target/${stdenv.hostPlatform.rust.cargoShortTarget}"
|
|
];
|
|
|
|
preFixup = ''
|
|
libcosmicAppWrapperArgs+=(
|
|
--prefix PATH : ${lib.makeBinPath [ cosmic-randr ]}
|
|
--set-default X11_BASE_RULES_XML ${xkeyboard_config}/share/X11/xkb/rules/base.xml
|
|
--set-default X11_BASE_EXTRA_RULES_XML ${xkeyboard_config}/share/X11/xkb/rules/extra.xml
|
|
)
|
|
'';
|
|
|
|
passthru = {
|
|
tests = {
|
|
inherit (nixosTests)
|
|
cosmic
|
|
cosmic-autologin
|
|
cosmic-noxwayland
|
|
cosmic-autologin-noxwayland
|
|
;
|
|
};
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version"
|
|
"unstable"
|
|
"--version-regex"
|
|
"epoch-(.*)"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Settings for the COSMIC Desktop Environment";
|
|
homepage = "https://github.com/pop-os/cosmic-settings";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "cosmic-settings";
|
|
teams = [ lib.teams.cosmic ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|