2
0
Fork 0
genodepkgs/flake.nix

34 lines
843 B
Nix
Raw Normal View History

2019-10-28 20:19:52 +01:00
{
edition = 201909;
2019-11-05 17:38:47 +01:00
description = "Genode packages";
2019-10-28 20:19:52 +01:00
inputs = {
2019-11-05 16:00:56 +01:00
nixpkgs.uri = "git+https://gitea.c3d2.de/ehmry/nixpkgs.git";
dhall-haskell.uri =
"git+https://github.com/dhall-lang/dhall-haskell?ref=flake";
2019-10-28 20:19:52 +01:00
};
outputs = { self, nixpkgs, dhall-haskell, genode-depot }:
2019-11-05 17:38:47 +01:00
let
systems = [ "x86_64-genode" ];
2019-10-28 20:19:52 +01:00
2019-11-05 17:38:47 +01:00
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
2019-10-28 20:19:52 +01:00
2019-11-05 17:38:47 +01:00
in {
2019-10-28 20:19:52 +01:00
lib = import ./lib { genodepkgs = self; inherit nixpkgs dhall-haskell genode-depot; };
2019-11-10 09:42:12 +01:00
2019-11-05 17:38:47 +01:00
packages = forAllSystems (system:
import ./packages.nix {
2019-11-10 19:34:34 +01:00
inherit system nixpkgs;
2019-11-05 17:38:47 +01:00
});
2019-10-28 20:19:52 +01:00
2019-11-05 17:38:47 +01:00
checks = forAllSystems (system:
import ./tests {
inherit self nixpkgs dhall-haskell genode-depot;
2019-11-05 17:38:47 +01:00
genodepkgs = builtins.getAttr system self.packages;
});
2019-10-28 20:19:52 +01:00
};
}