Skip to content

Commit

Permalink
remove flake-utils (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
toastal authored Jan 20, 2024
1 parent 1f75ead commit bbe37b6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 57 deletions.
34 changes: 0 additions & 34 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 31 additions & 23 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
purescript-overlay.url = "github:thomashoneyman/purescript-overlay";
purescript-overlay.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, flake-utils, purescript-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ purescript-overlay.overlays.default ];
pkgs = import nixpkgs {
inherit system overlays;
};
in {
devShells.default = pkgs.mkShell {
name = "spago";
buildInputs = with pkgs; [
purs
purs-tidy
purs-backend-es
spago-unstable
outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];

nodejs
esbuild
gh
];
};
}
);
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;

nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
overlays = builtins.attrValues self.overlays;
});
in
{
overlays = {
purescript = inputs.purescript-overlay.overlays.default;
};

devShells = forAllSystems (system:
let pkgs = nixpkgsFor.${system}; in {
default = pkgs.mkShell {
name = "spago";
buildInputs = with pkgs; [
purs
purs-tidy
purs-backend-es
spago-unstable

nodejs
esbuild
];
};
});
};
}

0 comments on commit bbe37b6

Please sign in to comment.