Skip to content

Instantly share code, notes, and snippets.

@dgarzon
Created December 18, 2018 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgarzon/b454c25b5a9fb4d6e1cf0ef8da6436b6 to your computer and use it in GitHub Desktop.
Save dgarzon/b454c25b5a9fb4d6e1cf0ef8da6436b6 to your computer and use it in GitHub Desktop.
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