From 6015fdc76aa9061af5c79e23c169072de4df5495 Mon Sep 17 00:00:00 2001 From: Kevin Quick Date: Wed, 18 Oct 2017 23:23:09 -0700 Subject: [PATCH] theft: add new theft development library package --- pkgs/development/libraries/theft/default.nix | 33 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/libraries/theft/default.nix diff --git a/pkgs/development/libraries/theft/default.nix b/pkgs/development/libraries/theft/default.nix new file mode 100644 index 000000000000..00534413c7bb --- /dev/null +++ b/pkgs/development/libraries/theft/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + version = "0.4.3"; + name = "theft-${version}"; + + src = fetchFromGitHub { + owner = "silentbicycle"; + repo = "theft"; + rev = "v${version}"; + sha256 = "1ibh8np12lafnrsrvjbbzlyq45zq654939x0y22vdnc6s8dpbhw4"; + }; + + preConfigure = "patchShebangs ./scripts/mk_bits_lut"; + # doCheck = true; + + propagatedBuildInputs = [ ]; + + buildInputs = [ ]; + + installFlags = [ "PREFIX=$(out)" ]; + postInstall = '' + install -m644 vendor/greatest.h $out/include/ + ''; + + meta = { + description = "A C library for property-based testing."; + platforms = stdenv.lib.platforms.linux; + homepage = "http://github.com/silentbicycle/theft/"; + license = stdenv.lib.licenses.isc; + maintainers = [ stdenv.lib.maintainers.kquick ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a9a3674ee6c1..0be5b4b3c68e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10766,6 +10766,8 @@ with pkgs; tet = callPackage ../development/tools/misc/tet { }; + theft = callPackage ../development/libraries/theft { }; + thrift = callPackage ../development/libraries/thrift { inherit (pythonPackages) twisted; };