Skip to content

Instantly share code, notes, and snippets.

@jakobrs
Last active December 15, 2019 11:23
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 jakobrs/2804441bd65374d8ef5e9e104d1d4845 to your computer and use it in GitHub Desktop.
Save jakobrs/2804441bd65374d8ef5e9e104d1d4845 to your computer and use it in GitHub Desktop.
extract from default.nix
{
# ...
src =
let
filterFn = path: type: lib.strings.hasPrefix (builtins.toString ./Celeste.Mod.mm) path
|| lib.strings.hasPrefix (builtins.toString ./MiniInstaller ) path
|| lib.strings.hasPrefix (builtins.toString ./lib ) path;
in
builtins.filterSource filterFn ./.;
# ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment