yammat/flake.nix

26 lines
622 B
Nix
Raw Normal View History

2021-03-10 00:29:14 +00:00
{
description = "Matemat";
2021-03-10 00:45:10 +00:00
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 {};
});
2021-03-10 00:29:14 +00:00
2021-03-10 00:45:10 +00:00
defaultPackage = forSystems (system:
self.packages.${system}.yammat
);
2021-03-10 00:29:14 +00:00
2021-03-10 00:45:10 +00:00
devShell = forSystems (system:
import ./shell.nix {
nixpkgs = nixpkgs.legacyPackages.${system};
}
);
2021-03-10 00:29:14 +00:00
nixosModule = import ./nixos-module.nix;
2021-03-10 00:45:10 +00:00
};
2021-03-10 00:29:14 +00:00
}