Closed
Conversation
This allows non-flake users to pass their own instances of rust-overlay/pkgs/crane and avoid duplication
Contributor
|
Can you share some details about your use case? I appreciate that
Ideally, this is functionality that In the interim, does manually pulling in one of the For example: let
fetchGh = { owner, repo, rev, sha256 }: import (builtins.fetchTarball {
url = "https://github.com/${owner}/{repo}/archive/${rev}.tar.gz";
inherit sha256;
});
zedSrc = fetchGh {
owner = "zed-industries"; repo = "zed";
rev = "da61a2883914557777257daa735d87f801829d27";
sha256 = "0ff3fqmjviska858igh23p2ykc57lc4cvyysly4afybdv68sc68q";
};
# https://github.com/nix-community/flake-compat/pull/4
flake-compat-custom = fetchGh {
owner = "nix-community"; repo = "flake-compat";
rev = "ad8d6af6aa8a14851a60bd00927f42b9798544ea";
sha256 = "08nyw5g93qlw35nwnh19yynvbni2c3licf6xzhjiw0318dybbxs0";
};
zed = (flake-compat-custom { src = zedSrc; }).defaultNix;
zedWithOverrides = zed.overrideInputs { nixpkgs = <nixpkgs>; }; # !!!
in {
upstreamZed = zed.outputs.packages.x86_64-linux.default;
customZed = zedWithOverrides.outputs.packages.x86_64-linux.default; # uses `<nixpkgs>` (channel)
} |
Contributor
Author
Thanks, that works for me. I prefer using npins and don't wanna duplicate nixpkgs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows non-flake users to pass their own instances of rust-overlay/pkgs/crane and avoid duplication
Release Notes:
cc @P1n3appl3