Adds nix support

This commit is contained in:
Leon Mergen 2015-07-11 17:19:31 +07:00
parent 7b078c902a
commit 5c065f60f3
3 changed files with 19 additions and 0 deletions

2
default.nix Normal file
View file

@ -0,0 +1,2 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
nixpkgs.haskellPackages.callPackage ./hexstring.nix { }

15
hexstring.nix Normal file
View 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
View file

@ -0,0 +1,2 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
(import ./default.nix { inherit nixpkgs compiler; }).env