lol

dart.rhttp: refactor and add 0.11.0

authored by

emaryn and committed by
emaryn
9bddccc8 77b5bffd

+22
+22
pkgs/development/compilers/dart/package-source-builders/rhttp/default.nix
··· 14 14 15 15 sourceRoot = "${src.name}/rust"; 16 16 17 + unpackPhase = '' 18 + runHook preUnpack 19 + 20 + if [ -d $src/rhttp ]; then 21 + cp -r $src/rhttp ${src.name} 22 + else 23 + cp -r $src ${src.name} 24 + fi 25 + chmod -R u+w -- "$sourceRoot" 26 + 27 + runHook postUnpack 28 + ''; 29 + 17 30 useFetchCargoVendor = true; 18 31 cargoHash = 19 32 { ··· 21 34 _0_9_6 = "sha256-vvzb+jNN5lmRrKJ3zqvORvdduqEHRmbp85L/9Zegh/E="; 22 35 _0_9_8 = "sha256-cwb1wYVXOE5YABlMxUDt+OMlDpIlipqeNI7ZFAGHCqo="; 23 36 _0_10_0 = "sha256-2SpAj53XvZXKRpMzFXJGcx7E2TlMUD+ooHkFwg/9fe4="; 37 + _0_11_0 = "sha256-sngh5k9GoCZhnIFTpnAVHZjxTcOv+Ui6pJ2cFyriL84="; 24 38 } 25 39 .${"_" + (lib.replaceStrings [ "." ] [ "_" ] version)} or (throw '' 26 40 Unsupported version of pub 'rhttp': '${version}' ··· 39 53 inherit version src; 40 54 inherit (src) passthru; 41 55 56 + prePatch = '' 57 + if [ -d rhttp ]; then pushd rhttp; fi 58 + ''; 59 + 42 60 patches = [ 43 61 (replaceVars ./cargokit.patch { 44 62 output_lib = "${rustDep}/${rustDep.passthru.libraryPath}"; 45 63 }) 46 64 ]; 65 + 66 + postPatch = '' 67 + popd || true 68 + ''; 47 69 48 70 installPhase = '' 49 71 runHook preInstall