1
0
Fork 0
piped-flake/flake.nix

58 lines
1.7 KiB
Nix
Raw Normal View History

2023-09-08 10:59:27 +01:00
{
description = "Piped - A alternate frontend for YouTube";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = {
self,
nixpkgs,
utils,
...
}:
{
nixosModules.piped = import ./module/default.nix;
2023-09-08 10:59:27 +01:00
nixosModules.default = self.nixosModules.piped;
2023-09-21 01:24:37 +01:00
overlays.piped = final: _prev: rec {
2023-09-08 10:59:27 +01:00
piped-frontend = final.callPackage ./packages/frontend {};
piped-backend = final.callPackage ./packages/backend {
jre = final.openjdk19_headless;
jdk = final.openjdk19;
};
piped-proxy = final.callPackage ./packages/proxy {};
piped-proxy-openssl = piped-proxy.override {withOpenSSL = true;};
piped-proxy-minimal = piped-proxy.override {
withAVIF = false;
withWebP = false;
};
piped-proxy-minimal-openssl = piped-proxy-minimal.override {withOpenSSL = true;};
2023-09-21 01:24:37 +01:00
piped-backend-deps = final.callPackage ./packages/backend/deps.nix {
jdk = final.openjdk19;
};
2023-09-08 10:59:27 +01:00
};
overlays.default = self.overlays.piped;
2023-09-08 10:59:27 +01:00
}
// utils.lib.eachSystem (utils.lib.defaultSystems) (system: let
pkgs = import nixpkgs {
inherit system;
2023-09-08 12:01:41 +01:00
overlays = [self.overlays.default];
2023-09-08 10:59:27 +01:00
};
in {
formatter = pkgs.alejandra;
2023-09-08 10:59:27 +01:00
packages = {
inherit (pkgs) piped-frontend;
inherit (pkgs) piped-backend;
inherit (pkgs) piped-proxy piped-proxy-openssl;
inherit (pkgs) piped-proxy-minimal piped-proxy-minimal-openssl;
2023-09-08 10:59:27 +01:00
};
});
}