lol

fetchMixDeps: transition to hash

authored by

happysalada and committed by
Yt
6a050b80 82801fe3

+13 -8
+1 -1
pkgs/applications/audio/sonic-pi/default.nix
··· 53 53 pname = "mix-deps-${pname}"; 54 54 mixEnv = "test"; 55 55 src = "${src}/app/server/beam/tau"; 56 - sha256 = "sha256-MvwUyVTS23vQKLpGxz46tEVCs/OyYk5dDaBlv+kYg1M="; 56 + hash = "sha256-MvwUyVTS23vQKLpGxz46tEVCs/OyYk5dDaBlv+kYg1M="; 57 57 }; 58 58 59 59 strictDeps = true;
+1 -1
pkgs/development/beam-modules/elixir-ls/default.nix
··· 21 21 mixFodDeps = fetchMixDeps { 22 22 pname = "mix-deps-${pname}"; 23 23 inherit src version elixir; 24 - sha256 = "sha256-jF1Plkz1D85aWkiNgeBlJmHndhr7us+8+m/gMkXHvDw="; 24 + hash = "sha256-jF1Plkz1D85aWkiNgeBlJmHndhr7us+8+m/gMkXHvDw="; 25 25 }; 26 26 27 27 # elixir-ls is an umbrella app
+9 -4
pkgs/development/beam-modules/fetch-mix-deps.nix
··· 2 2 3 3 { pname 4 4 , version 5 - , sha256 5 + , hash ? "" 6 + , sha256 ? "" 6 7 , src 7 8 , mixEnv ? "prod" 8 9 , debug ? false ··· 13 14 , ... 14 15 }@attrs: 15 16 17 + let 18 + hash_ = 19 + if hash != "" then { outputHashAlgo = null; outputHash = hash; } 20 + else if sha256 != "" then { outputHashAlgo = "sha256"; outputHash = sha256; } 21 + else { outputHashAlgo = "sha256"; outputHash = lib.fakeSha256; }; 22 + in 16 23 stdenvNoCC.mkDerivation (attrs // { 17 24 nativeBuildInputs = [ elixir hex cacert git ]; 18 25 ··· 51 58 runHook postInstall 52 59 ''; 53 60 54 - outputHashAlgo = "sha256"; 55 61 outputHashMode = "recursive"; 56 - outputHash = sha256; 57 62 58 63 impureEnvVars = lib.fetchers.proxyImpureEnvVars; 59 64 inherit meta; 60 - }) 65 + } // hash_)
+1 -1
pkgs/servers/web-apps/livebook/default.nix
··· 19 19 mixFodDeps = beamPackages.fetchMixDeps { 20 20 pname = "mix-deps-${pname}"; 21 21 inherit src version; 22 - sha256 = "rwWGs4fGeuyV6BBFgCyyDwKf/YLgs1wY0xnHYy8iioE="; 22 + hash = "sha256-rwWGs4fGeuyV6BBFgCyyDwKf/YLgs1wY0xnHYy8iioE="; 23 23 }; 24 24 25 25 installPhase = ''
+1 -1
pkgs/servers/web-apps/plausible/default.nix
··· 25 25 mixFodDeps = beamPackages.fetchMixDeps { 26 26 pname = "${pname}-deps"; 27 27 inherit src version; 28 - sha256 = "1ikcskp4gvvdprl65x1spijdc8dz6klnrnkvgy2jbk0b3d7yn1v5"; 28 + hash = "sha256-ZQfrTxsLzCWFf3vabOk0vyHWZLw69GJovm3vR+7UbMY="; 29 29 }; 30 30 31 31 yarnDeps = mkYarnModules {