copyparty/flake.nix
Tom van Dijk a4b98175c3
nix: add partyfuse
One downside of the way the nix ecosystem works is that MacFUSE needs to
be installed manually. Luckily the script tells you that already!
2025-07-28 13:28:16 +02:00

54 lines
1.1 KiB
Nix

{
inputs = {
nixpkgs.url = "nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
{
nixosModules.default = ./contrib/nixos/modules/copyparty.nix;
overlays.default = self: super: rec {
copyparty = self.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
ffmpeg = self.ffmpeg-full;
};
partyfuse = super.callPackage ./contrib/package/nix/partyfuse {
inherit copyparty;
};
u2c = super.callPackage ./contrib/package/nix/u2c {
inherit copyparty;
};
};
}
// flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowAliases = false;
};
overlays = [ self.overlays.default ];
};
in
{
packages = {
inherit (pkgs)
copyparty
partyfuse
u2c
;
default = self.packages.${system}.copyparty;
};
formatter = pkgs.nixfmt-tree;
}
);
}