mirror of
https://github.com/9001/copyparty.git
synced 2025-08-16 00:22:13 -06:00
* nix: get source tarball with update.py * nix: build from source nix: remove u2c and partyfuse packages The main copyparty package has u2c and partyfuse, so these packages are redundant now nix: add fusepy dependency fix: nix: use replace pyfuse with fusepy * nix: fix extra python packages * nix: add optional dependencies * nix: add partftpy package * nix: add tftp parameter to package * nix: enable pyproject for partftpy package * nix: replace partftpy overlay with real package * nix: add updater for partftpy * nix: bring back local release pin to update.py nix: update local release pin function in update.py --------- Signed-off-by: Toast <39011842+toast003@users.noreply.github.com>
62 lines
1.5 KiB
Nix
62 lines
1.5 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 = final: prev: {
|
|
copyparty = final.python3.pkgs.callPackage ./contrib/package/nix/copyparty {
|
|
ffmpeg = final.ffmpeg-full;
|
|
};
|
|
python3 = prev.python3.override {
|
|
packageOverrides = pyFinal: pyPrev: {
|
|
partftpy = pyFinal.callPackage ./contrib/package/nix/partftpy { };
|
|
};
|
|
};
|
|
};
|
|
}
|
|
// flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowAliases = false;
|
|
};
|
|
overlays = [ self.overlays.default ];
|
|
};
|
|
in
|
|
{
|
|
# check that copyparty builds with all optionals turned on
|
|
checks.copyparty-full = self.packages.${system}.copyparty.override {
|
|
withHashedPasswords = true;
|
|
withCertgen = true;
|
|
withThumbnails = true;
|
|
withFastThumbnails = true;
|
|
withMediaProcessing = true;
|
|
withBasicAudioMetadata = true;
|
|
withZeroMQ = true;
|
|
withFTPS = true;
|
|
withSMB = true;
|
|
};
|
|
|
|
packages = {
|
|
inherit (pkgs)
|
|
copyparty
|
|
;
|
|
default = self.packages.${system}.copyparty;
|
|
};
|
|
|
|
formatter = pkgs.nixfmt-tree;
|
|
}
|
|
);
|
|
}
|