diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-06-26 00:09:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-26 00:09:11 +0000 |
commit | 947012b992faa88e9d5b0d168c8f81c8e7cf995e (patch) | |
tree | 3b5f923312bb65436d1ffe6134af9ba8c9e9f0f2 /pkgs/development/libraries/pystring/default.nix | |
parent | 4966eff42cf9976319ac34fa28f3af224723a771 (diff) | |
parent | f15360e6a41e77aa479dd47896e709fd77214e4f (diff) | |
download | nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.gz nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.bz2 nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.lz nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.xz nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.tar.zst nixpkgs-947012b992faa88e9d5b0d168c8f81c8e7cf995e.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/libraries/pystring/default.nix')
-rw-r--r-- | pkgs/development/libraries/pystring/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/pystring/default.nix b/pkgs/development/libraries/pystring/default.nix new file mode 100644 index 00000000000..3a1e64c0b00 --- /dev/null +++ b/pkgs/development/libraries/pystring/default.nix @@ -0,0 +1,33 @@ +{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake }: + +stdenv.mkDerivation rec { + pname = "pystring"; + version = "1.1.3"; + + src = fetchFromGitHub { + owner = "imageworks"; + repo = "pystring"; + rev = "v${version}"; + sha256 = "1w31pjiyshqgk6zd6m3ab3xfgb0ribi77r6fwrry2aw8w1adjknf"; + }; + + patches = [ + (fetchpatch { + name = "pystring-cmake-configuration.patch"; + url = "https://github.com/imageworks/pystring/commit/4f653fc35421129eae8a2c424901ca7170059370.patch"; + sha256 = "1hynzz76ff4vvmi6kwixsmjswkpyj6s4vv05d7nw0zscj4cdp8k3"; + }) + ]; + + nativeBuildInputs = [ cmake ]; + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/imageworks/pystring/"; + description = "A collection of C++ functions which match the interface and behavior of python's string class methods using std::string"; + license = licenses.bsd3; + maintainers = [ maintainers.rytone ]; + platforms = platforms.unix; + }; +} |