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 libva, 15 fetchpatch, 16 }: 17 - rustPlatform.buildRustPackage rec { 18 pname = "dim"; 19 version = "0-unstable-2023-12-29"; 20 src = fetchFromGitHub { 21 owner = "Dusk-Labs"; 22 repo = "dim"; ··· 26 27 frontend = buildNpmPackage { 28 pname = "dim-ui"; 29 - inherit version; 30 - src = "${src}/ui"; 31 32 postPatch = '' 33 ln -s ${./package-lock.json} package-lock.json ··· 37 38 installPhase = '' 39 runHook preInstall 40 cp -r build $out 41 runHook postInstall 42 ''; 43 }; ··· 62 ]; 63 64 postPatch = '' 65 ln -sf ${./Cargo.lock} Cargo.lock 66 ''; 67 ··· 120 maintainers = [ lib.maintainers.misterio77 ]; 121 platforms = lib.platforms.unix; 122 }; 123 - }
··· 14 libva, 15 fetchpatch, 16 }: 17 + 18 + rustPlatform.buildRustPackage (finalAttrs: { 19 pname = "dim"; 20 version = "0-unstable-2023-12-29"; 21 + 22 src = fetchFromGitHub { 23 owner = "Dusk-Labs"; 24 repo = "dim"; ··· 28 29 frontend = buildNpmPackage { 30 pname = "dim-ui"; 31 + inherit (finalAttrs) version; 32 + src = "${finalAttrs.src}/ui"; 33 34 postPatch = '' 35 ln -s ${./package-lock.json} package-lock.json ··· 39 40 installPhase = '' 41 runHook preInstall 42 + 43 cp -r build $out 44 + 45 runHook postInstall 46 ''; 47 }; ··· 66 ]; 67 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)]" 75 ln -sf ${./Cargo.lock} Cargo.lock 76 ''; 77 ··· 130 maintainers = [ lib.maintainers.misterio77 ]; 131 platforms = lib.platforms.unix; 132 }; 133 + })