Inline unpack-channel.sh
This commit is contained in:
		
							parent
							
								
									8a25d787d7
								
							
						
					
					
						commit
						afa7e01878
					
				
					 3 changed files with 17 additions and 8 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| all-local: config.nix | ||||
| 
 | ||||
| files = nar.nix buildenv.nix buildenv.pl unpack-channel.nix unpack-channel.sh derivation.nix fetchurl.nix \ | ||||
| files = nar.nix buildenv.nix buildenv.pl unpack-channel.nix derivation.nix fetchurl.nix \ | ||||
| 	imported-drv-to-derivation.nix | ||||
| 
 | ||||
| install-exec-local: | ||||
|  |  | |||
|  | @ -1,14 +1,27 @@ | |||
| with import <nix/config.nix>; | ||||
| 
 | ||||
| let | ||||
| 
 | ||||
|   builder = builtins.toFile "unpack-channel.sh" | ||||
|     '' | ||||
|       mkdir $out | ||||
|       cd $out | ||||
|       ${bzip2} -d < $src | ${tar} xf - | ||||
|       mv * $out/$channelName | ||||
|     ''; | ||||
| 
 | ||||
| in | ||||
| 
 | ||||
| { name, channelName, src }: | ||||
| 
 | ||||
| derivation { | ||||
|   system = builtins.currentSystem; | ||||
|   builder = shell; | ||||
|   args = [ "-e" ./unpack-channel.sh ]; | ||||
|   inherit name channelName src bzip2 tar tr; | ||||
|   args = [ "-e" builder ]; | ||||
|   inherit name channelName src; | ||||
| 
 | ||||
|   PATH = "${nixBinDir}:${coreutils}"; | ||||
|    | ||||
| 
 | ||||
|   # No point in doing this remotely. | ||||
|   preferLocalBuild = true; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,4 +0,0 @@ | |||
| mkdir $out | ||||
| cd $out | ||||
| $bzip2 -d < $src | $tar xf - | ||||
| mv * $out/$channelName | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue