Revamp all templates to remove flake-utils and nixpkgs-unstable
This commit is contained in:
parent
db0398d60d
commit
8532ea5be8
58 changed files with 587 additions and 1299 deletions
30
purescript/flake.lock
generated
30
purescript/flake.lock
generated
|
@ -3,11 +3,11 @@
|
|||
"easy-purescript-nix": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1671011575,
|
||||
"narHash": "sha256-tESal32bcqqdZO+aKnBzc1GoL2mtnaDtj2y7ociCRGA=",
|
||||
"lastModified": 1686900973,
|
||||
"narHash": "sha256-9whTjp8BYy8ZzyghhgbawS06/dVESduME3wsdNH/mpk=",
|
||||
"owner": "justinwoo",
|
||||
"repo": "easy-purescript-nix",
|
||||
"rev": "11d3bd58ce6e32703bf69cec04dc7c38eabe14ba",
|
||||
"rev": "8cf400656945b2f2bacfd6a8775792aa701f60e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -16,33 +16,18 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1676283394,
|
||||
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1677655039,
|
||||
"narHash": "sha256-IsU0SSBUOr/qYTkiwIgXQ91Io/2bfXI7PG4MoJritLA=",
|
||||
"lastModified": 1689261696,
|
||||
"narHash": "sha256-LzfUtFs9MQRvIoQ3MfgSuipBVMXslMPH/vZ+nM40LkA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "96a40fa5e8dee644ba60c8a966adadd2d448104a",
|
||||
"rev": "df1eee2aa65052a18121ed4971081576b25d6b5c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "release-22.11",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -50,7 +35,6 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"easy-purescript-nix": "easy-purescript-nix",
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,42 +2,34 @@
|
|||
description = "A Nix-flake-based Purescript development environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/release-22.11";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
easy-purescript-nix = {
|
||||
url = "github:justinwoo/easy-purescript-nix";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ self
|
||||
, nixpkgs
|
||||
, flake-utils
|
||||
, easy-purescript-nix
|
||||
}:
|
||||
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
outputs = { self, nixpkgs, easy-purescript-nix }:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
easy-ps = import easy-purescript-nix { inherit pkgs; };
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = (with pkgs; [ nodejs ]) ++ (with easy-ps; [
|
||||
purs
|
||||
spago
|
||||
purescript-language-server
|
||||
purs-tidy
|
||||
]);
|
||||
|
||||
shellHook = with easy-ps; ''
|
||||
echo "Purs `${purs}/bin/purs --version`"
|
||||
echo "Spago `${spago}/bin/spago --version`"
|
||||
echo "Purescript Language Server `${purescript-language-server}/bin/purescript-language-server --version`"
|
||||
echo "Purs Tidy `${purs-tidy}/bin/purs-tidy --version`"
|
||||
echo "Node.js `${pkgs.nodejs}/bin/node --version`"
|
||||
'';
|
||||
};
|
||||
});
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
default =
|
||||
let
|
||||
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
|
||||
]);
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue