secp256k1

Pure cryptographic primitives on the secp256k1 elliptic curve.
git clone git://git.ppad.tech/secp256k1.git
Log | Files | Refs | LICENSE

commit 7cf2b51a5937c51442ef521ab9c4700c74e5a02d
parent c4298dbf4b18e93aaa12d8f77a16fb3801fbe32e
Author: Jared Tobin <jared@jtobin.io>
Date:   Wed, 13 Mar 2024 16:46:13 +0400

meta: fitting out project skeleton

Diffstat:
Mflake.nix | 18++++++++++--------
Alib/Crypto/Secp256k1.hs | 2++
Mppad-secp256k1.cabal | 3++-
3 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -14,20 +14,20 @@ pkgs = import nixpkgs { inherit system; }; hlib = pkgs.haskell.lib; - hpkgs = pkgs.haskell.packages.ghc964; - # hpkgs = pkgs.haskell.packages.ghc964.override { - # overrides = new: old: { - # ${lib} = old.callCabal2nix lib ./. {}; - # }; - # }; + hpkgs = pkgs.haskell.packages.ghc964.override { + overrides = new: old: { + ${lib} = old.callCabal2nix lib ./. {}; + }; + }; + cc = pkgs.stdenv.cc; ghc = hpkgs.ghc; cabal = hpkgs.cabal-install; in { - # packages.${lib} = hpkgs.${lib}; + packages.${lib} = hpkgs.${lib}; - # defaultPackage = self.packages.${system}.${lib}; + defaultPackage = self.packages.${system}.${lib}; devShells.default = hpkgs.shellFor { packages = p: [ @@ -35,6 +35,7 @@ buildInputs = [ cabal + cc ]; inputsFrom = builtins.attrValues self.packages.${system}; @@ -42,6 +43,7 @@ shellHook = '' PS1="[${lib}] \w$ " echo "entering ${system} shell, using" + echo "cc: $(${cc}/bin/cc --version)" echo "ghc: $(${ghc}/bin/ghc --version)" echo "cabal: $(${cabal}/bin/cabal --version)" ''; diff --git a/lib/Crypto/Secp256k1.hs b/lib/Crypto/Secp256k1.hs @@ -0,0 +1,2 @@ +module Crypto.Secp256k1 where + diff --git a/ppad-secp256k1.cabal b/ppad-secp256k1.cabal @@ -23,6 +23,7 @@ library hs-source-dirs: lib ghc-options: -Wall - -- exposed-modules: + exposed-modules: + Crypto.Secp256k1 build-depends: base