flake.nix: remove flake-utils again
This commit is contained in:
parent
3b82d37bd2
commit
fa86ef2526
1 changed files with 17 additions and 9 deletions
26
flake.nix
26
flake.nix
|
@ -1,17 +1,25 @@
|
||||||
{
|
{
|
||||||
description = "Matemat";
|
description = "Matemat";
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils }:
|
outputs = { self, nixpkgs }:
|
||||||
flake-utils.lib.eachDefaultSystem (system: {
|
let
|
||||||
packages.yammat = nixpkgs.legacyPackages.${system}.haskellPackages.callPackage ./pkg.nix {};
|
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:
|
||||||
nixpkgs = nixpkgs.legacyPackages.${system};
|
import ./shell.nix {
|
||||||
};
|
nixpkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
nixosModule = import ./nixos-module.nix;
|
nixosModule = import ./nixos-module.nix;
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue