Skip to content

Instantly share code, notes, and snippets.

@petermarks
Created June 12, 2016 19:31
Show Gist options
  • Save petermarks/20d39e2aa69eab131af38e6183feb3fd to your computer and use it in GitHub Desktop.
Save petermarks/20d39e2aa69eab131af38e6183feb3fd to your computer and use it in GitHub Desktop.
{ stdenv }:
stdenv.mkDerivation
{ name = "website";
src = ../code;
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out
cp -r * $out/
ln -s /data/files $out
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment