1 { stdenv, lib, fetchurl, registryDat }:
5 cmds = lib.mapAttrsToList
8 pkg = stdenv.mkDerivation {
9 name = lib.replaceStrings [ "/" ] [ "-" ] name + "-${info.version}";
12 url = "https://github.com/${name}/archive/${info.version}.tar.gz";
13 meta.homepage = "https://github.com/${name}/";
14 inherit (info) sha256;
27 mkdir -p .elm/${ver}/packages/${name}
28 cp -R ${pkg} .elm/${ver}/packages/${name}/${info.version}
32 (lib.concatStrings cmds) + ''
33 mkdir -p .elm/${ver}/packages;
34 cp ${registryDat} .elm/${ver}/packages/registry.dat;