dim: fix build (#397565)

authored by Aleksana and committed by GitHub 1eb1a7ae bef4f93d

+14 -4
+14 -4
pkgs/by-name/di/dim/package.nix
··· 14 14 libva, 15 15 fetchpatch, 16 16 }: 17 - rustPlatform.buildRustPackage rec { 17 + 18 + rustPlatform.buildRustPackage (finalAttrs: { 18 19 pname = "dim"; 19 20 version = "0-unstable-2023-12-29"; 21 + 20 22 src = fetchFromGitHub { 21 23 owner = "Dusk-Labs"; 22 24 repo = "dim"; ··· 26 28 27 29 frontend = buildNpmPackage { 28 30 pname = "dim-ui"; 29 - inherit version; 30 - src = "${src}/ui"; 31 + inherit (finalAttrs) version; 32 + src = "${finalAttrs.src}/ui"; 31 33 32 34 postPatch = '' 33 35 ln -s ${./package-lock.json} package-lock.json ··· 37 39 38 40 installPhase = '' 39 41 runHook preInstall 42 + 40 43 cp -r build $out 44 + 41 45 runHook postInstall 42 46 ''; 43 47 }; ··· 62 66 ]; 63 67 64 68 postPatch = '' 69 + substituteInPlace dim-core/src/lib.rs \ 70 + --replace-fail "#![deny(warnings)]" "#![warn(warnings)]" 71 + substituteInPlace dim-events/src/lib.rs \ 72 + --replace-fail "#![deny(warnings)]" "#![warn(warnings)]" 73 + substituteInPlace dim-database/src/lib.rs \ 74 + --replace-fail "#![deny(warnings)]" "#![warn(warnings)]" 65 75 ln -sf ${./Cargo.lock} Cargo.lock 66 76 ''; 67 77 ··· 120 130 maintainers = [ lib.maintainers.misterio77 ]; 121 131 platforms = lib.platforms.unix; 122 132 }; 123 - } 133 + })