diff options
author | Anthony Roussel <anthony@roussel.dev> | 2023-10-10 16:13:26 +0200 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2023-10-10 16:41:49 +0200 |
commit | d7e3b25dea27131def18db3b65930ec760e3c9a4 (patch) | |
tree | 72a7eafaff4c528b3f83dde824834f04ee283e65 /pkgs/servers/search | |
parent | 878106bc3c04518dedd74bbeccac9704a86cf468 (diff) |
sonic-server: 1.4.0 -> 1.4.3
https://github.com/valeriansaliou/sonic/releases/tag/v1.4.3 https://github.com/valeriansaliou/sonic/releases/tag/v1.4.2 https://github.com/valeriansaliou/sonic/releases/tag/v1.4.1
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r-- | pkgs/servers/search/sonic-server/default.nix | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/servers/search/sonic-server/default.nix b/pkgs/servers/search/sonic-server/default.nix index 7d39d8cc759ac..4b4d103f2f55c 100644 --- a/pkgs/servers/search/sonic-server/default.nix +++ b/pkgs/servers/search/sonic-server/default.nix @@ -3,19 +3,20 @@ , fetchFromGitHub }: -rustPlatform.buildRustPackage { +rustPlatform.buildRustPackage rec { pname = "sonic-server"; - version = "1.4.0"; + version = "1.4.3"; src = fetchFromGitHub { owner = "valeriansaliou"; repo = "sonic"; - rev = "f5302f5c424256648ba0be32b3c5909d846821fe"; - sha256 = "sha256-WebEluXijgJckZQOka2BDPYn7PqzPTsIcV2T380fxW8="; + rev = "refs/tags/v${version}"; + hash = "sha256-V97K4KS46DXje4qKA11O9NEm0s13aTUnM+XW8lGc6fo="; }; - cargoSha256 = "sha256-ObhKGjaIma6fUVUT3xadpy/GPYlnm0nKmRVxFmoePyQ="; + cargoHash = "sha256-vWAFWoscV0swwrBQoa3glKXMRgdGYa+QrPprlVCP1QM="; + # Found argument '--test-threads' which wasn't expected, or isn't valid in this context doCheck = false; nativeBuildInputs = [ @@ -27,19 +28,19 @@ rustPlatform.buildRustPackage { ''; postInstall = '' - mkdir -p $out/etc/ - mkdir -p $out/usr/lib/systemd/system/ - install -Dm444 -t $out/etc/sonic config.cfg - substitute \ - ./examples/config/systemd.service $out/usr/lib/systemd/system/sonic-server.service \ - --replace /bin/sonic $out/bin/sonic \ + install -Dm444 -t $out/lib/systemd/system debian/sonic.service + + substituteInPlace \ + $out/lib/systemd/system/sonic.service \ + --replace /usr/bin/sonic $out/bin/sonic \ --replace /etc/sonic.cfg $out/etc/sonic/config.cfg ''; meta = with lib; { description = "Fast, lightweight and schema-less search backend"; homepage = "https://github.com/valeriansaliou/sonic"; + changelog = "https://github.com/valeriansaliou/sonic/releases/tag/v${version}"; license = licenses.mpl20; platforms = platforms.unix; maintainers = with maintainers; [ pleshevskiy ]; |