flake.lock update.

This commit is contained in:
Gabe Venberg 2025-07-04 23:24:12 +02:00
parent dc1e99a104
commit 824f849fba
2 changed files with 18 additions and 49 deletions

View file

@ -12,42 +12,11 @@
nsort = true;
fk = 8;
};
betapackage = let
pyEnv = pkgs.python3.withPackages (
python-pkgs:
with python-pkgs; [
jinja2
pillow
pkgs.ffmpeg
mutagen
argon2-cffi
]
);
in
pkgs.stdenv.mkDerivation {
pname = "copyparty";
version = "1.17.0";
src = pkgs.fetchurl {
url = "https://ocv.me/copyparty/beta/copyparty-sfx.py";
hash = "sha256-vXx+4Stax/HH+eIc1ktYM+zuoRxEB2mxfoY7haPAID4=";
};
buildInputs = [pkgs.makeWrapper];
dontUnpack = true;
dontBuild = true;
installPhase = ''
install -Dm755 $src $out/share/copyparty-sfx.py
makeWrapper ${pyEnv.interpreter} $out/bin/copyparty \
--set PATH '${lib.makeBinPath [pkgs.util-linux pkgs.ffmpeg]}:$PATH' \
--add-flags "$out/share/copyparty-sfx.py"
'';
meta.mainProgram = "copyparty";
};
in {
nixpkgs.overlays = [inputs.copyparty.overlays.default];
environment.systemPackages = with pkgs; [copyparty];
services.copyparty = {
enable = true;
package = betapackage;
user = config.host.details.user;
group = "users";
# directly maps to values in the [global] section of the copyparty config.