Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Use as a flake input #63

Open
terlar opened this issue Nov 25, 2020 · 0 comments
Open

Use as a flake input #63

terlar opened this issue Nov 25, 2020 · 0 comments

Comments

@terlar
Copy link

terlar commented Nov 25, 2020

I tried to use this as a flake input, but due to the inability to pass the system it seems to be an impossible task.

ghcide-nix/nix/sources.nix

Lines 157 to 171 in 521e28d

mkConfig =
{ sourcesFile ? if builtins.pathExists ./sources.json then ./sources.json else null
, sources ? if isNull sourcesFile then {} else builtins.fromJSON (builtins.readFile sourcesFile)
, system ? builtins.currentSystem
, pkgs ? mkPkgs sources system
}: rec {
# The sources, i.e. the attribute set of spec name to spec
inherit sources;
# The "pkgs" (evaluated nixpkgs) to use for e.g. non-builtin fetchers
inherit pkgs;
};
in
mkSources (mkConfig {}) // { __functor = _: settings: mkSources (mkConfig settings); }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant