commit 372b6a51cabaeae2dfa0f91c365afad5b0235b80
Author: Jared Tobin <jared@jtobin.io>
Date: Fri, 9 Feb 2024 15:25:33 +0400
Initial commit.
Diffstat:
A | flake.lock | | | 61 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
A | flake.nix | | | 30 | ++++++++++++++++++++++++++++++ |
2 files changed, 91 insertions(+), 0 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1705309234,
+ "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1707451808,
+ "narHash": "sha256-UwDBUNHNRsYKFJzyTMVMTF5qS4xeJlWoeyJf+6vvamU=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "442d407992384ed9c0e6d352de75b69079904e4e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
@@ -0,0 +1,30 @@
+{
+ description = "haskell-secp256k1";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs = { self, nixpkgs, flake-utils }:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in
+ {
+ devShells.default = pkgs.mkShell {
+ buildInputs = [
+ pkgs.secp256k1
+ pkgs.haskell.compiler.ghc964
+ pkgs.haskell.packages.ghc964.cabal-install
+ ];
+
+ shellHook = ''
+ echo "entering shell.."
+ PS1="\e[1;34m[nix-develop] \w$ \e[0m"
+ echo "$(${pkgs.haskell.compiler.ghc964}/bin/ghc --version)"
+ '';
+ };
+ }
+ );
+}