Skip to content

Instantly share code, notes, and snippets.

@hyperfekt
Last active March 1, 2019 21:24
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 hyperfekt/3ed070ea127c2ea5a6250392a5102a13 to your computer and use it in GitHub Desktop.
Save hyperfekt/3ed070ea127c2ea5a6250392a5102a13 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {}, ...}:
pkgs.stdenv.mkDerivation {
name = "nixpkgs-patched";
unpackPhase = ''
ln -s ${pkgs.path}/* $PWD
'';
patches = [];
patchFlags = [ "--follow-symlinks" "--merge" ];
dontBuild = true;
installPhase = ''
mkdir -p $out
mv * $out
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment