Adds nix support
This commit is contained in:
parent
7b078c902a
commit
5c065f60f3
3 changed files with 19 additions and 0 deletions
2
default.nix
Normal file
2
default.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
|
||||
nixpkgs.haskellPackages.callPackage ./hexstring.nix { }
|
15
hexstring.nix
Normal file
15
hexstring.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ mkDerivation, aeson, base, base16-bytestring, binary, bytestring
|
||||
, hspec, stdenv, text
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "hexstring";
|
||||
version = "0.11.1";
|
||||
src = ./.;
|
||||
buildDepends = [
|
||||
aeson base base16-bytestring binary bytestring text
|
||||
];
|
||||
testDepends = [ base binary bytestring hspec text ];
|
||||
homepage = "http://www.leonmergen.com/opensource.html";
|
||||
description = "Fast and safe representation of a hex string";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
}
|
2
shell.nix
Normal file
2
shell.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
|
||||
(import ./default.nix { inherit nixpkgs compiler; }).env
|
Loading…
Reference in a new issue