solution: use gradle 7.2

Co-authored-by: Brian McGee <brian@41north.dev>
This commit is contained in:
Aldo
2021-11-12 03:36:32 +01:00
committed by GitHub
parent abb74c98af
commit b6a05d67df
16 changed files with 688 additions and 226 deletions

29
nix/mkEnv.nix Normal file
View File

@@ -0,0 +1,29 @@
{ lib, writeText, buildEnv }:
{ name ? "dev-env"
, # Environment variables to set
env ? { }
, # Packages to add to the path
paths ? [ ]
}:
let
envToBash = name: value:
"export ${name}=${lib.escapeShellArg (toString value)}"
;
exports = lib.concatStringsSep "\n"
(map (name: envToBash name env.${name}) (lib.attrNames env));
env-root = writeText "env-root" ''
export PATH=@env-root@/bin:$PATH
${exports}
'';
in
buildEnv {
inherit name;
paths = paths;
postBuild = ''
sed "s|@env-root@|$out|g" ${env-root} > $out/.profile
'';
}