Skip to content

Instantly share code, notes, and snippets.

@bbjubjub2494
Last active December 21, 2020 21:34
Show Gist options
  • Save bbjubjub2494/6ea2a7317098a7ee289b184d02d09302 to your computer and use it in GitHub Desktop.
Save bbjubjub2494/6ea2a7317098a7ee289b184d02d09302 to your computer and use it in GitHub Desktop.
Nixpkgs overlay to access package from the master branch
final: prev: {
master =
let
source = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/master.tar.gz";
};
in
import source {
config = final.config;
};
}
@bbjubjub2494
Copy link
Author

See builtins.fetchTarball documentation. This is a bit of a kludge but in the absence of flakes it's a good solution.

@bbjubjub2494
Copy link
Author

My bad, the zip breaks the stable branch of nix. fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment