copyparty beta package, to test a bugfix before ed releases it.
This commit is contained in:
		
							parent
							
								
									d5523568d6
								
							
						
					
					
						commit
						e995342947
					
				
					 1 changed files with 34 additions and 3 deletions
				
			
		| 
						 | 
					@ -12,11 +12,42 @@
 | 
				
			||||||
    nsort = true;
 | 
					    nsort = true;
 | 
				
			||||||
    fk = 8;
 | 
					    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 {
 | 
					in {
 | 
				
			||||||
  nixpkgs.overlays = [inputs.copyparty.overlays.default];
 | 
					  nixpkgs.overlays = [inputs.copyparty.overlays.default];
 | 
				
			||||||
  environment.systemPackages = with pkgs; [copyparty];
 | 
					  environment.systemPackages = with pkgs; [copyparty];
 | 
				
			||||||
  services.copyparty = {
 | 
					  services.copyparty = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    package = betapackage;
 | 
				
			||||||
    user = config.host.details.user;
 | 
					    user = config.host.details.user;
 | 
				
			||||||
    group = "users";
 | 
					    group = "users";
 | 
				
			||||||
    # directly maps to values in the [global] section of the copyparty config.
 | 
					    # directly maps to values in the [global] section of the copyparty config.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue