dwarf-fortress: use fetchFromGitHub directly
This avoids creating a second derivation to copy things from the original. The new themes are now fixed output.
This commit is contained in:
		
							parent
							
								
									14555eab0f
								
							
						
					
					
						commit
						aba6a3d7f4
					
				@ -4,18 +4,12 @@ with builtins;
 | 
			
		||||
 | 
			
		||||
listToAttrs (map (v: {
 | 
			
		||||
  inherit (v) name;
 | 
			
		||||
  value = stdenv.mkDerivation {
 | 
			
		||||
  value = fetchFromGitHub {
 | 
			
		||||
    name = "${v.name}-${v.version}";
 | 
			
		||||
    src = fetchFromGitHub {
 | 
			
		||||
      owner = "DFgraphics";
 | 
			
		||||
      repo = v.name;
 | 
			
		||||
      rev = v.version;
 | 
			
		||||
      sha256 = v.sha256;
 | 
			
		||||
    };
 | 
			
		||||
    installPhase = ''
 | 
			
		||||
      mkdir -p $out
 | 
			
		||||
      cp -r data raw $out
 | 
			
		||||
    '';
 | 
			
		||||
    owner = "DFgraphics";
 | 
			
		||||
    repo = v.name;
 | 
			
		||||
    rev = v.version;
 | 
			
		||||
    sha256 = v.sha256;
 | 
			
		||||
    meta = with lib; {
 | 
			
		||||
      platforms = platforms.all;
 | 
			
		||||
      maintainers = [ maintainers.matthewbauer ];
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user