22 lines
		
	
	
	
		
			714 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			714 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
# sources.nix
 | 
						|
# This file defines external sources used in your Nix builds.
 | 
						|
 | 
						|
{ pkgs }: # Takes the pkgs argument to use pkgs.fetchgit
 | 
						|
 | 
						|
let
 | 
						|
  # Define the manyfold source using pkgs.fetchgit
 | 
						|
  # This fetches the specified Git repository at a particular commit for reproducibility.
 | 
						|
  manyfold = pkgs.fetchgit {
 | 
						|
    url = "https://github.com/manyfold3d/manyfold";
 | 
						|
    rev = "716a57b216a471b1d481c69056dccb5ad48f039c"; # Specific commit hash
 | 
						|
    sha256 = "sha256-ZhbVMkueZ0zakMO8FoXkClkN/q/KMj+OZcIhnmJWi2I="; # SHA256 hash of the fetched content
 | 
						|
  };
 | 
						|
 | 
						|
in
 | 
						|
{
 | 
						|
  # Expose the manyfold derivation.
 | 
						|
  # You can add more sources here as needed, e.g., other git repos, local paths, etc.
 | 
						|
  inherit manyfold;
 | 
						|
  foo = "bar";
 | 
						|
}
 | 
						|
 |