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";
|
||||
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 {
|
||||
nixpkgs = nixpkgs.legacyPackages.${system};
|
||||
};
|
||||
devShell = forSystems (system:
|
||||
import ./shell.nix {
|
||||
nixpkgs = nixpkgs.legacyPackages.${system};
|
||||
}
|
||||
);
|
||||
|
||||
nixosModule = import ./nixos-module.nix;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue