Skip to content
Snippets Groups Projects
Commit 8b9292ff authored by Daniel Firth's avatar Daniel Firth
Browse files

Add example call to makePackageSet

parent b3446f41
No related merge requests found
{
"nodes": {
"all-cabal-hashes": {
"flake": false,
"locked": {
"lastModified": 1667742759,
"narHash": "sha256-PniFwhuGiX32rPHNyqgx8nn1No39SP89CHSoBuJOXlE=",
"owner": "commercialhaskell",
"repo": "all-cabal-hashes",
"rev": "eaf3b72978447f236e82c0de1d6f770e3dec00a7",
"type": "github"
},
"original": {
"owner": "commercialhaskell",
"ref": "hackage",
"repo": "all-cabal-hashes",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1659877975,
......@@ -113,6 +130,7 @@
},
"root": {
"inputs": {
"all-cabal-hashes": "all-cabal-hashes",
"flake-utils": "flake-utils",
"get-flake": "get-flake",
"horizon-gen-nix": "horizon-gen-nix",
......
{
inputs = {
all-cabal-hashes = {
url = "github:commercialhaskell/all-cabal-hashes/hackage";
flake = false;
};
get-flake.url = "github:ursi/get-flake";
lint-utils.url = "git+https://gitlab.homotopic.tech/nix/lint-utils";
horizon-gen-nix = {
......@@ -8,15 +12,19 @@
};
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs = inputs@{ self, nixpkgs, flake-utils, get-flake, horizon-gen-nix, lint-utils, ... }:
outputs = inputs@{ self, all-cabal-hashes, nixpkgs, flake-utils, get-flake, horizon-gen-nix, lint-utils, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
horizon-gen-nix-app = get-flake horizon-gen-nix;
overrides-hp = import ./overlay.nix { inherit inputs pkgs; };
configuration = import ./configuration.nix { inherit inputs pkgs; };
hp = pkgs.haskell.packages.ghc942.override {
overrides = pkgs.lib.composeManyExtensions [ overrides-hp configuration ];
hsPkgs = pkgs.callPackage (nixpkgs + /pkgs/development/haskell-modules) {
buildHaskellPackages = pkgs.haskell.packages.ghc942;
configurationCommon = { pkgs, haskellLib }: self: super: { };
ghc = pkgs.haskell.compiler.ghc942;
haskellLib = pkgs.haskell.lib;
initialPackages = import ./overlay.nix;
compilerConfig = pkgs.callPackage (nixpkgs + /pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix) { haskellLib = pkgs.haskell.lib; };
};
hp' = pkgs.lib.filterAttrs
(n: v: v != null
......@@ -24,7 +32,7 @@
&& pkgs.lib.hasAttr "type" v
&& v.type == "derivation"
&& v.meta.broken == false)
hp;
hsPkgs;
horizon-gen-gitlab-ci = pkgs.writers.writeBashBin "gen-gitlab-ci" "${pkgs.dhall-json}/bin/dhall-to-yaml --file .gitlab-ci.dhall";
in
{
......@@ -39,7 +47,6 @@
dhall-format = lint-utils.outputs.linters.x86_64-linux.dhall-format ./.;
nixpkgs-fmt = lint-utils.outputs.linters.x86_64-linux.nixpkgs-fmt ./.;
};
overrides.ghc942 = overrides-hp;
packages = hp';
});
}
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment