Add unpack utility
This commit is contained in:
parent
98bf68cd8e
commit
38e1081cb0
11
configuration/lib/unpack.nix
Normal file
11
configuration/lib/unpack.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
sourceArchive:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "unpack-temp";
|
||||
src = sourceArchive;
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out
|
||||
tar -xzvf $src -C $out
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue