cosmic-initial-setup: fix theme and layouts page (#447578)

This commit is contained in:
Alyssa Ross
2025-10-01 07:27:14 +00:00
committed by GitHub
2 changed files with 11 additions and 0 deletions

View File

@@ -72,6 +72,8 @@ in
environment.pathsToLink = [
"/share/backgrounds"
"/share/cosmic"
"/share/cosmic-layouts"
"/share/cosmic-themes"
];
environment.systemPackages = utils.removePackagesByName (
corePkgs

View File

@@ -3,6 +3,7 @@
stdenv,
rustPlatform,
fetchFromGitHub,
fetchpatch2,
just,
libcosmicAppHook,
libinput,
@@ -24,6 +25,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-orwK9gcFXK4/+sfwRubcz0PP6YAFqsENRHnlSLttLxM=";
buildFeatures = [ "nixos" ];
# cargo-auditable fails during the build when compiling the `crabtime::function`
# procedural macro. It panics because the `--out-dir` flag is not passed to
# the rustc wrapper.
@@ -47,6 +50,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
patches = [
./disable-language-page.patch
./disable-timezone-page.patch
# TODO: Remove in next update
(fetchpatch2 {
name = "fix-layout-and-themes-page.patch";
url = "https://patch-diff.githubusercontent.com/raw/pop-os/cosmic-initial-setup/pull/53.diff?full_index=1";
hash = "sha256-081qyQnPhh+FRPU/JKJVCK+l3SKjHAIV5b6/7WN6lb8=";
})
];
postPatch = ''