Created
May 6, 2021 22:43
-
-
Save htr/652d507b8a2875060e85436266ea1ec2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib, pkgs, stdenv }: | |
let | |
current-nixfiles = stdenv.mkDerivation rec { | |
name = "unpack-nixfiles"; | |
src = ../.; | |
installPhase = '' | |
mkdir -p $out/share/nixfiles | |
cd $src | |
tar --transform 's,^,nixfiles/,' -czf $out/share/nixfiles/nixfiles.tar.gz . | |
''; | |
}; | |
in pkgs.writeShellScriptBin "unpack-nixfiles" '' | |
tar zxf ${current-nixfiles}/share/nixfiles/nixfiles.tar.gz | |
'' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment