1
0
Fork 0

make deps its own package

This commit is contained in:
chaos 2023-09-21 01:24:37 +01:00
parent 994a8e983e
commit 76f688b1e6
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -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;
} }

View file

@ -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}...'