yammat/flake.nix
2021-03-10 01:45:32 +01:00

25 lines
622 B
Nix

{
description = "Matemat";
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 = forSystems (system:
self.packages.${system}.yammat
);
devShell = forSystems (system:
import ./shell.nix {
nixpkgs = nixpkgs.legacyPackages.${system};
}
);
nixosModule = import ./nixos-module.nix;
};
}