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