cura: add plugins
This commit is contained in:
		
							parent
							
								
									cd15b820f1
								
							
						
					
					
						commit
						ef94df7dd7
					
				
							
								
								
									
										18
									
								
								large-sw.nix
									
									
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										18
									
								
								large-sw.nix
									
									
									
									
									
								
							@ -1,17 +1,5 @@
 | 
				
			|||||||
{ config, pkgs, ... }:
 | 
					{ config, pkgs, ... }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let curaWorkaround = with pkgs; stdenv.mkDerivation {
 | 
					 | 
				
			||||||
  name = "cura-without-openmp-${cura.version}";
 | 
					 | 
				
			||||||
  # https://github.com/NixOS/nixpkgs/issues/59901
 | 
					 | 
				
			||||||
  buildPhase = ''
 | 
					 | 
				
			||||||
    makeWrapper ${cura}/bin/cura $out/bin/cura --set OMP_NUM_THREADS 1
 | 
					 | 
				
			||||||
    mkdir $out/nix-support
 | 
					 | 
				
			||||||
    cp ${cura}/nix-support/propagated-user-env-packages $out/nix-support
 | 
					 | 
				
			||||||
  '';
 | 
					 | 
				
			||||||
  phases = [ "buildPhase" ];
 | 
					 | 
				
			||||||
  nativeBuildInputs = [ makeWrapper ];
 | 
					 | 
				
			||||||
}; in
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  environment.systemPackages = with pkgs.haskellPackages; with pkgs; [
 | 
					  environment.systemPackages = with pkgs.haskellPackages; with pkgs; [
 | 
				
			||||||
    idea-community-eap
 | 
					    idea-community-eap
 | 
				
			||||||
@ -36,7 +24,11 @@ let curaWorkaround = with pkgs; stdenv.mkDerivation {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    # virtmanager
 | 
					    # virtmanager
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    curaWorkaround
 | 
					    (if lib.hasAttr "curaPlugins" pkgs then
 | 
				
			||||||
 | 
					      cura.override {
 | 
				
			||||||
 | 
					        plugins = with curaPlugins; [ octoprint ];
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					     else cura)
 | 
				
			||||||
    openscad
 | 
					    openscad
 | 
				
			||||||
    # freecad
 | 
					    # freecad
 | 
				
			||||||
    meshlab
 | 
					    meshlab
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user