32 lines
1.9 KiB
Nix
32 lines
1.9 KiB
Nix
# Workaround for cosmic-settings-daemon 1.0.8 build failure:
|
|
# The Cargo.lock references https://github.com/pop-os/dbus-settings-bindings
|
|
# at two different commits (3b86984 and 0fa672f8), which cargoSetupHook
|
|
# rejects ("Sources are not allowed to be defined multiple times").
|
|
#
|
|
# Using importCargoLock (cargoLock) instead of fetchCargoVendor (cargoHash)
|
|
# avoids this check. We override cargoDeps directly since cargoLock is
|
|
# consumed by buildRustPackage before reaching mkDerivation.
|
|
{ ... }:
|
|
final: prev: {
|
|
cosmic-settings-daemon = prev.cosmic-settings-daemon.overrideAttrs (old: {
|
|
cargoDeps = final.rustPlatform.importCargoLock {
|
|
lockFile = "${old.src}/Cargo.lock";
|
|
outputHashes = {
|
|
"atomicwrites-0.4.2" = "sha256-QZSuGPrJXh+svMeFWqAXoqZQxLq/WfIiamqvjJNVhxA=";
|
|
"clipboard_macos-0.1.0" = "sha256-+8CGmBf1Gl9gnBDtuKtkzUE5rySebhH7Bsq/kNlJofY=";
|
|
"cosmic-client-toolkit-0.1.0" = "sha256-KvXQJ/EIRyrlmi80WKl2T9Bn+j7GCfQlcjgcEVUxPkc=";
|
|
"cosmic-comp-config-0.1.0" = "sha256-H2eMYjJi9VXv6D5IREVjfqR46hC9dxT84lk9Ubpnhpk=";
|
|
"cosmic-config-1.0.0" = "sha256-JzryxfdMMn4Ew5lKCpirzT50Rd5egudfXXTSql0iFas=";
|
|
"cosmic-dbus-a11y-0.1.0" = "sha256-CEmzl/09rD11kgnoHP2Q6N/emDhEK4wQiqSXmIlsbPE=";
|
|
"cosmic-freedesktop-icons-0.4.0" = "sha256-D4bWHQ4Dp8UGiZjc6geh2c2SGYhB7mX13THpCUie1c4=";
|
|
"cosmic-settings-daemon-0.1.0" = "sha256-QIupze3m2au51yJWsBylz2rBfeqreFX2D/F2+JbIWmg=";
|
|
"cosmic-settings-subscriptions-0.1.0" = "sha256-PSp7a80TO6z7b+Gkf5jHz7KNVNfc29HF8DFqEjkC75o=";
|
|
"cosmic-text-0.17.1" = "sha256-NHjJBE/WSMhN29CKTuB7PyJv4y2JByi5pyTUDtVoF7g=";
|
|
"iced_glyphon-0.6.0" = "sha256-u1vnsOjP8npQ57NNSikotuHxpi4Mp/rV9038vAgCsfQ=";
|
|
"smithay-clipboard-0.8.0" = "sha256-4InFXm0ahrqFrtNLeqIuE3yeOpxKZJZx+Bc0yQDtv34=";
|
|
"softbuffer-0.4.1" = "sha256-/ocK79Lr5ywP/bb5mrcm7eTzeBbwpOazojvFUsAjMKM=";
|
|
};
|
|
};
|
|
});
|
|
}
|