Browse Source

flake.nix: remove flake-utils again

master
Astro 7 months ago
committed by nek0
parent
commit
4efcc9ed26
  1. 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…
Cancel
Save