Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "pystring"; 5 version = "1.1.3"; 6 7 src = fetchFromGitHub { 8 owner = "imageworks"; 9 repo = "pystring"; 10 rev = "v${version}"; 11 sha256 = "1w31pjiyshqgk6zd6m3ab3xfgb0ribi77r6fwrry2aw8w1adjknf"; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 name = "pystring-cmake-configuration.patch"; 17 url = "https://github.com/imageworks/pystring/commit/4f653fc35421129eae8a2c424901ca7170059370.patch"; 18 sha256 = "1hynzz76ff4vvmi6kwixsmjswkpyj6s4vv05d7nw0zscj4cdp8k3"; 19 }) 20 ]; 21 22 nativeBuildInputs = [ cmake ]; 23 24 doCheck = true; 25 26 meta = with lib; { 27 homepage = "https://github.com/imageworks/pystring/"; 28 description = "A collection of C++ functions which match the interface and behavior of python's string class methods using std::string"; 29 license = licenses.bsd3; 30 maintainers = [ maintainers.rytone ]; 31 platforms = platforms.unix; 32 }; 33}