Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created February 22, 2019 23:47
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 LnL7/0cae01a283754c36f95cc8d6ea94a3df to your computer and use it in GitHub Desktop.
Save LnL7/0cae01a283754c36f95cc8d6ea94a3df to your computer and use it in GitHub Desktop.
{ pkgs ? import ./. {
overlays = [
(self: super:
{
callPackage = f: args:
let
drv = super.runCommandNoCC "hello-override" {} ''
mkdir $out
substitute ${f}/default.nix $out/default.nix \
--replace 2.10 2.11 \
--replace 0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i 0000000000000000000000000000000000000000000000000000
'';
in
if f == ./pkgs/applications/misc/hello
then super.callPackage (import drv) args
else super.callPackage f args;
})
];
}
}:
pkgs.callPackage ./pkgs/applications/misc/hello {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment