2
0
Fork 0

Flake simplification

This commit is contained in:
Ehmry - 2019-11-10 19:34:34 +01:00
parent bd1ac437ba
commit 2269f1ec65
2 changed files with 4 additions and 6 deletions

View File

@ -11,7 +11,6 @@
outputs = { self, nixpkgs, dhall-haskell, genode-depot }: outputs = { self, nixpkgs, dhall-haskell, genode-depot }:
let let
nixpkgs' = import nixpkgs;
systems = [ "x86_64-genode" ]; systems = [ "x86_64-genode" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
@ -22,8 +21,7 @@
packages = forAllSystems (system: packages = forAllSystems (system:
import ./packages.nix { import ./packages.nix {
inherit system; inherit system nixpkgs;
nixpkgs = nixpkgs';
}); });
checks = forAllSystems (system: checks = forAllSystems (system:

View File

@ -2,17 +2,17 @@
# #
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1 # SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
{ system ? "x86_64-genode", nixpkgs ? import <nixpkgs>, extraOverlays ? [ ] }: { system, nixpkgs }:
let let
toolchainOverlay = import ./toolchain-overlay; toolchainOverlay = import ./toolchain-overlay;
# Overlay of toolchain patches # Overlay of toolchain patches
super = nixpkgs { super = import nixpkgs {
# Evaluate an overlayed Nixpkgs for a Genode target # Evaluate an overlayed Nixpkgs for a Genode target
localSystem = "x86_64-linux"; localSystem = "x86_64-linux";
crossSystem = "x86_64-genode"; crossSystem = "x86_64-genode";
overlays = [ toolchainOverlay ] ++ extraOverlays; overlays = [ toolchainOverlay ];
}; };
inherit (super) callPackage; inherit (super) callPackage;