Skip to content

Instantly share code, notes, and snippets.

@LnL7 LnL7/upgrade-package.nix Secret
Created Feb 22, 2019

Embed
What would you like to do?
{ 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
You can’t perform that action at this time.