diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2022-08-22 03:13:00 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2022-08-22 05:34:52 +0200 |
commit | 0a32d87be64f16f14108ca81f481683691698912 (patch) | |
tree | c28dec201ace0751b99fb591b9e53b87c24eb5ee | |
parent | 7efd61a09a17bb43278a39958a64444832b268b9 (diff) |
libstemmer: unstable-2017-03-02 -> 2.2.0
-rw-r--r-- | pkgs/development/libraries/libstemmer/default.nix | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/pkgs/development/libraries/libstemmer/default.nix b/pkgs/development/libraries/libstemmer/default.nix index 835d13d51b4f0..b0beafbcee263 100644 --- a/pkgs/development/libraries/libstemmer/default.nix +++ b/pkgs/development/libraries/libstemmer/default.nix @@ -1,21 +1,34 @@ -{ lib, stdenv, fetchFromGitHub, cmake }: +{ lib, stdenv, fetchFromGitHub, perl }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "libstemmer"; - version = "unstable-2017-03-02"; + version = "2.2.0"; src = fetchFromGitHub { - owner = "zvelo"; - repo = "libstemmer"; - rev = "78c149a3a6f262a35c7f7351d3f77b725fc646cf"; - sha256 = "06md6n6h1f2zvnjrpfrq7ng46l1x12c14cacbrzmh5n0j98crpq7"; + owner = "snowballstem"; + repo = "snowball"; + rev = "v${version}"; + sha256 = "sha256-qXrypwv/I+5npvGHGsHveijoui0ZnoGYhskCfLkewVE="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ perl ]; + + prePatch = '' + patchShebangs . + ''; + + makeTarget = "libstemmer.a"; + + installPhase = '' + runHook preInstall + install -Dt $out/lib libstemmer.a + install -Dt $out/include include/libstemmer.h + runHook postInstall + ''; meta = with lib; { description = "Snowball Stemming Algorithms"; - homepage = "http://snowball.tartarus.org/"; + homepage = "https://snowballstem.org/"; license = licenses.bsd3; maintainers = with maintainers; [ fpletz ]; platforms = platforms.all; |