Update from source

This commit is contained in:
Lillian Violet 2024-04-25 12:26:02 +02:00
parent c0a10971eb
commit 89ab4c3423
17 changed files with 321 additions and 146 deletions

View file

@ -9,19 +9,12 @@
};
};
outputs =
{ self
, nixpkgs
, easy-purescript-nix
,
}:
outputs = { self, nixpkgs, easy-purescript-nix }:
let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]; # "aarch64-linux" not supported
forEachSupportedSystem = f:
nixpkgs.lib.genAttrs supportedSystems (system:
f {
pkgs = import nixpkgs { inherit system; };
});
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
@ -30,14 +23,12 @@
easy-ps = import easy-purescript-nix { inherit pkgs; };
in
pkgs.mkShell {
packages =
(with pkgs; [ nodejs ])
++ (with easy-ps; [
purs
spago
purescript-language-server
purs-tidy
]);
packages = (with pkgs; [ nodejs ]) ++ (with easy-ps; [
purs
spago
purescript-language-server
purs-tidy
]);
};
});
};