sha256

Pure Haskell implementation of the SHA-256 hashing algorithm.
git clone git://git.ppad.tech/sha256.git
Log | Files | Refs | LICENSE

commit 3bc5280281865ec1229138334c7b7ade8bb1cd02
parent aafc1ccf5119bb013faca80b0c625fbcf2b3f9fe
Author: Jared Tobin <jared@jtobin.io>
Date:   Mon,  8 Apr 2024 17:16:58 +0400

nix: build lib

Diffstat:
Mflake.nix | 26++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -14,36 +14,34 @@ 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: [ ]; - # packages = p: [ - # (hlib.doBenchmark p.${lib}) - # ]; + packages = p: [ + (hlib.doBenchmark p.${lib}) + ]; buildInputs = [ cabal cc ]; - # inputsFrom = builtins.attrValues self.packages.${system}; + inputsFrom = builtins.attrValues self.packages.${system}; - # doBenchmark = true; + doBenchmark = true; shellHook = '' PS1="[${lib}] \w$ "