Skip to content

Instantly share code, notes, and snippets.

@euank
Last active May 28, 2020 19:54
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 euank/3dd22901d9e169b7668ec779a5708480 to your computer and use it in GitHub Desktop.
Save euank/3dd22901d9e169b7668ec779a5708480 to your computer and use it in GitHub Desktop.
let
overlay = self: super: rec {
my-hello = super.callPackage ./pkgs/hello/default.nix {};
hello = if super.hello.version > my-hello.version then super.hello else my-hello;
};
unstable = import <nixos-unstable> {
overlays = [ overlay ];
config = { };
};
in
{
environment.systemPackages = [
unstable.hello
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment