This commit is contained in:
2025-02-10 21:47:57 -05:00
parent 2b66f1a774
commit 5cb473d279
10 changed files with 76 additions and 67 deletions

21
etcnixos/util/untar.nix Normal file
View File

@@ -0,0 +1,21 @@
{
stdenv,
gnutar,
src,
}:
stdenv.mkDerivation {
pname = "untar";
version = "1.0";
inherit src;
buildInputs = [ gnutar ];
# input is a file, not a directory, skip unpackPhase
unpackPhase = "true";
installPhase = ''
mkdir -p $out
tar xf ${src} -C $out/
'';
}