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