json2nix: add compiler as a package option
This commit is contained in:
parent
42758507b6
commit
93cc90c97b
|
@ -56,7 +56,8 @@
|
||||||
# nix-packages-json = pkgs.emptyFile;
|
# nix-packages-json = pkgs.emptyFile;
|
||||||
|
|
||||||
# Internal Tools
|
# Internal Tools
|
||||||
json2nix = pkgs.callPackage ./internals/json2nix { };
|
json2nix =
|
||||||
|
pkgs.callPackage ./internals/json2nix { compiler = "ghc924"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
overlays.default = _: prev: prev // self.packages.${system};
|
overlays.default = _: prev: prev // self.packages.${system};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, compiler ? "ghc924", ... }:
|
||||||
let
|
let
|
||||||
overlayedPkgs = pkgs.extend
|
overlayedPkgs =
|
||||||
(pkgs.callPackage ./haskell-overlay.nix { compiler = "ghc924"; });
|
pkgs.extend (pkgs.callPackage ./haskell-overlay.nix { inherit compiler; });
|
||||||
in overlayedPkgs.writers.writeHaskellBin "json2nix" {
|
in overlayedPkgs.writers.writeHaskellBin "json2nix" {
|
||||||
libraries = with overlayedPkgs.haskellPackages; [ aeson nixfmt extra text ];
|
libraries = with overlayedPkgs.haskellPackages; [ aeson nixfmt extra text ];
|
||||||
} (builtins.readFile ./json2nix.hs)
|
} (builtins.readFile ./json2nix.hs)
|
||||||
|
|
Loading…
Reference in New Issue