kesha: Haskell implementation of nix-hash

[ library, mit, system ] [ Propose Tags ] [ Report a vulnerability ]

Compute the cryptographic hash of a path, à la Nix.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.1.0.1
Change log CHANGELOG.md
Dependencies base (>=4.10.1 && <4.15), binary (>=0.8.6 && <0.9), bytestring (>=0.10.8 && <0.11), containers (>=0.6.0 && <0.7), cryptohash-md5 (>=0.11.100 && <0.12), cryptohash-sha1 (>=0.11.100 && <0.12), cryptohash-sha256 (>=0.11.101 && <0.12), directory (>=1.3.1 && <1.4), filepath (>=1.4.2 && <1.5), text (>=1.2.3 && <1.3) [details]
Tested with ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.3, ghc ==8.10.1
License MIT
Copyright (c) 2020 Jordan Mackie
Author Jordan Mackie
Maintainer contact@jmackie.dev
Category System
Home page https://github.com/jmackie/kesha
Bug tracker https://github.com/jmackie/kesha/issues
Source repo head: git clone git://github.com/jmackie/kesha.git
Uploaded by jmackie at 2020-11-30T16:37:44Z
Distributions
Downloads 368 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for kesha-0.1.0.1

[back to package description]

kesha

CI Hackage

A Haskell library for computing the cryptographic hash of any path.

The implementation is an almost verbatim implementation of nix-hash, which is the standard tool used by the Nix package manager.

module Main where

import qualified Kesha

main :: IO ()
main = do
  result <- Kesha.hash "some-path"
  print result