Created
December 18, 2018 00:52
-
-
Save dgarzon/b454c25b5a9fb4d6e1cf0ef8da6436b6 to your computer and use it in GitHub Desktop.
This file contains 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
let | |
repository = { | |
url = "https://github.com/jpetazzo/dind"; | |
rev = "248c10c4165205ef595a86d95a42859036296fa4"; | |
}; | |
in | |
stdenv.mkDerivation rec { | |
name = "wrap-docker"; | |
src = builtins.fetchGit repository; | |
phases = [ "installPhase" ]; | |
installPhase = '' | |
mkdir -p $out/bin | |
cp ${src}/wrapdocker $out/bin/wrapdocker | |
cp ${src}/binary/dmsetup $out/bin/dmsetup | |
chmod +x $out/bin/wrapdocker | |
chmod +x $out/bin/dmsetup | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment