12 lines
187 B
Nix
12 lines
187 B
Nix
|
{ pkgs, ... }:
|
||
|
sourceArchive:
|
||
|
pkgs.stdenv.mkDerivation {
|
||
|
name = "unpack-temp";
|
||
|
src = sourceArchive;
|
||
|
|
||
|
buildCommand = ''
|
||
|
mkdir -p $out
|
||
|
tar -xzvf $src -C $out
|
||
|
'';
|
||
|
}
|