make deps its own package
This commit is contained in:
parent
994a8e983e
commit
76f688b1e6
|
@ -20,13 +20,16 @@
|
||||||
nixosModules.piped = import ./module/default.nix;
|
nixosModules.piped = import ./module/default.nix;
|
||||||
nixosModules.default = self.nixosModules.piped;
|
nixosModules.default = self.nixosModules.piped;
|
||||||
|
|
||||||
overlays.piped = final: _prev: {
|
overlays.piped = final: _prev: rec {
|
||||||
piped-frontend = final.callPackage ./packages/frontend {};
|
piped-frontend = final.callPackage ./packages/frontend {};
|
||||||
piped-backend = final.callPackage ./packages/backend {
|
piped-backend = final.callPackage ./packages/backend {
|
||||||
jre = final.openjdk19_headless;
|
jre = final.openjdk19_headless;
|
||||||
jdk = final.openjdk19;
|
jdk = final.openjdk19;
|
||||||
};
|
};
|
||||||
piped-proxy = final.callPackage ./packages/proxy {};
|
piped-proxy = final.callPackage ./packages/proxy {};
|
||||||
|
piped-backend-deps = final.callPackage ./packages/backend/deps.nix {
|
||||||
|
jdk = final.openjdk19;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
overlays.default = self.overlays.piped;
|
overlays.default = self.overlays.piped;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,11 +8,11 @@
|
||||||
perl,
|
perl,
|
||||||
writeText,
|
writeText,
|
||||||
callPackage,
|
callPackage,
|
||||||
|
piped-backend-deps,
|
||||||
}: let
|
}: let
|
||||||
meta = builtins.fromJSON (builtins.readFile ../../meta.json);
|
meta = builtins.fromJSON (builtins.readFile ../../meta.json);
|
||||||
|
|
||||||
deps =
|
deps = piped-backend-deps;
|
||||||
callPackage ./deps.nix {inherit stdenv fetchFromGitHub jdk gradle perl;};
|
|
||||||
|
|
||||||
gradleInit = writeText "init.gradle" ''
|
gradleInit = writeText "init.gradle" ''
|
||||||
logger.lifecycle 'Replacing Maven repositories with ${deps}...'
|
logger.lifecycle 'Replacing Maven repositories with ${deps}...'
|
||||||
|
|
Loading…
Reference in a new issue