diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..c5b96c2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,111 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1673269145, + "narHash": "sha256-FlkWoWLu1JiAp9+26HmrT2jpz4LGMEsrS8dyIINGnUQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d744fdbab93b048ec24cc7baf7598618d0eb9d3b", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1671995294, + "narHash": "sha256-KDeHKinlHWSLZX1JEh3FFwHZ3RXx/Jak/QcUNC00BNo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "83d9cef1044cbccc2237d94b018fb0a2e25e97c4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "type": "github" + } + }, + "purescript-registry": { + "flake": false, + "locked": { + "lastModified": 1672067897, + "narHash": "sha256-9MtdAoPvUIRsMyY3nnVyFtjUwjGyan0ELFRR1BVV9tE=", + "owner": "purescript", + "repo": "registry", + "rev": "a83eadc5d79ac6ca728a66cfe093fa9bfc5ca91e", + "type": "github" + }, + "original": { + "owner": "purescript", + "repo": "registry", + "type": "github" + } + }, + "purescript-registry-index": { + "flake": false, + "locked": { + "lastModified": 1672067900, + "narHash": "sha256-oZUfucrvUPCNd8aOWdRLgm3ldsnwyjCw5KO6jRpVK1U=", + "owner": "purescript", + "repo": "registry-index", + "rev": "53da963f7b1ccb8cbd79c2944767efda8c3c664d", + "type": "github" + }, + "original": { + "owner": "purescript", + "repo": "registry-index", + "type": "github" + } + }, + "purescript2nix": { + "inputs": { + "nixpkgs": "nixpkgs_2", + "purescript-registry": "purescript-registry", + "purescript-registry-index": "purescript-registry-index" + }, + "locked": { + "lastModified": 1673245600, + "narHash": "sha256-SlN9R1KDBBZphQznrNVGzVtOeFvIV8uK8the4IFSEBk=", + "owner": "considerate", + "repo": "purescript2nix", + "rev": "e121aa54c7d2288265526bab719726f0d01d932c", + "type": "github" + }, + "original": { + "owner": "considerate", + "ref": "considerate/registry", + "repo": "purescript2nix", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs", + "purescript2nix": "purescript2nix" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3c89aab --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + inputs = { + nixpkgs = { + url = "github:NixOS/nixpkgs"; + }; + purescript2nix = { + url = "github:considerate/purescript2nix/considerate/registry"; + }; + flake-utils = { + url = "github:numtide/flake-utils"; + }; + }; + outputs = inputs: + inputs.flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import inputs.nixpkgs { + inherit system; + overlays = [ inputs.purescript2nix.overlay ]; + }; + uint = pkgs.purescript2nix { + src = ./.; + }; + in + { + packages = { + default = uint; + }; + defaultPackage = uint; + }); +} diff --git a/spago.yaml b/spago.yaml index 747a7b8..1145e9d 100644 --- a/spago.yaml +++ b/spago.yaml @@ -1,6 +1,10 @@ package: name: "uint" + version: 7.0.0 dependencies: [ "prelude", "maybe", "numbers", "enums", "gen" ] publish: license: "MIT" location: "https://github.com/purescript-contrib/purescript-uint.git" +workspace: + set: + registry: 8.6.0