Browse Source

Add unpack utility

master
Sven Slootweg 1 year ago
parent
commit
38e1081cb0
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      configuration/lib/unpack.nix

+ 11
- 0
configuration/lib/unpack.nix View 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…
Cancel
Save