flake.nix: remove flake-utils again

This commit is contained in:
Astro 2021-03-10 01:45:10 +01:00
parent 3b82d37bd2
commit fa86ef2526

View file

@ -1,17 +1,25 @@
{
description = "Matemat";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: {
packages.yammat = nixpkgs.legacyPackages.${system}.haskellPackages.callPackage ./pkg.nix {};
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forSystems = nixpkgs.lib.genAttrs systems;
in {
packages = forSystems (system: {
yammat = nixpkgs.legacyPackages.${system}.haskellPackages.callPackage ./pkg.nix {};
});
defaultPackage = self.packages.${system}.yammat;
defaultPackage = forSystems (system:
self.packages.${system}.yammat
);
devShell = import ./shell.nix {
devShell = forSystems (system:
import ./shell.nix {
nixpkgs = nixpkgs.legacyPackages.${system};
};
}
);
nixosModule = import ./nixos-module.nix;
});
};
}