48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
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;
|
|
nixosModules.default = self.nixosModules.piped;
|
|
|
|
overlays.piped = final: _prev: {
|
|
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 {};
|
|
};
|
|
overlays.default = self.overlays.piped;
|
|
}
|
|
// utils.lib.eachSystem (utils.lib.defaultSystems) (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [self.overlays.default];
|
|
};
|
|
in {
|
|
formatter = pkgs.alejandra;
|
|
|
|
packages = {
|
|
inherit (pkgs) piped-frontend;
|
|
inherit (pkgs) piped-backend;
|
|
inherit (pkgs) piped-proxy;
|
|
};
|
|
});
|
|
}
|