Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created March 29, 2018 16:45
Show Gist options
  • Save LnL7/58d687c58948e71acd7fd4d410f3cdd1 to your computer and use it in GitHub Desktop.
Save LnL7/58d687c58948e71acd7fd4d410f3cdd1 to your computer and use it in GitHub Desktop.
self: super:
let
# Import unstable channel.
# $ sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
# $ sudo nix-channel --update nixpkgs-unstable
unstable = import <nixpkgs-unstable> {};
in
{
unstable = super.unstable or {} // {
foo = unstable.hello.override { inherit (super) stdenv fetchurl; };
bar = super.callPackage <nixpkgs-unstable/pkgs/applications/misc/hello> { };
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment