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,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2023-09-08 11:00:47 +01:00
|
|
|
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 {};
|
2023-09-30 18:17:15 +01:00
|
|
|
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
|
|
|
};
|
2023-09-08 11:00:47 +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 {
|
2023-09-14 16:56:17 +01:00
|
|
|
formatter = pkgs.alejandra;
|
|
|
|
|
2023-09-08 10:59:27 +01:00
|
|
|
packages = {
|
|
|
|
inherit (pkgs) piped-frontend;
|
|
|
|
inherit (pkgs) piped-backend;
|
2023-09-30 17:07:26 +01:00
|
|
|
inherit (pkgs) piped-proxy piped-proxy-openssl;
|
|
|
|
inherit (pkgs) piped-proxy-minimal piped-proxy-minimal-openssl;
|
2023-09-08 10:59:27 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|