Skip to content

Commit a9fed64

Browse files
committed
Add flake to test out purescript2nix
1 parent 3385f8a commit a9fed64

File tree

3 files changed

+145
-0
lines changed

3 files changed

+145
-0
lines changed

flake.lock

+111
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
inputs = {
3+
nixpkgs = {
4+
url = "github:NixOS/nixpkgs";
5+
};
6+
purescript2nix = {
7+
url = "github:considerate/purescript2nix/considerate/registry";
8+
};
9+
flake-utils = {
10+
url = "github:numtide/flake-utils";
11+
};
12+
};
13+
outputs = inputs:
14+
inputs.flake-utils.lib.eachDefaultSystem (system:
15+
let
16+
pkgs = import inputs.nixpkgs {
17+
inherit system;
18+
overlays = [ inputs.purescript2nix.overlay ];
19+
};
20+
uint = pkgs.purescript2nix {
21+
src = ./.;
22+
};
23+
in
24+
{
25+
packages = {
26+
default = uint;
27+
};
28+
defaultPackage = uint;
29+
});
30+
}

spago.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package:
22
name: "uint"
3+
version: 7.0.0
34
dependencies: [ "prelude", "maybe", "numbers", "enums", "gen" ]
45
publish:
56
license: "MIT"
67
location: "https://github.com/purescript-contrib/purescript-uint.git"
8+
workspace:
9+
set:
10+
registry: 8.6.0

0 commit comments

Comments
 (0)