From 3111f846e9d170dd041275d806a814ee56999b8c Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 14 Nov 2024 12:19:50 +0300 Subject: [PATCH] decasify: init at 0.8.0 --- pkgs/by-name/de/decasify/package.nix | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pkgs/by-name/de/decasify/package.nix diff --git a/pkgs/by-name/de/decasify/package.nix b/pkgs/by-name/de/decasify/package.nix new file mode 100644 index 000000000000..ce832d4d10d9 --- /dev/null +++ b/pkgs/by-name/de/decasify/package.nix @@ -0,0 +1,65 @@ +{ + lib, + stdenv, + fetchurl, + + # nativeBuildInputs + zstd, + pkg-config, + jq, + cargo, + rustc, + rustPlatform, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "decasify"; + version = "0.8.0"; + + src = fetchurl { + url = "https://github.com/alerque/decasify/releases/download/v${finalAttrs.version}/decasify-${finalAttrs.version}.tar.zst"; + hash = "sha256-HTUAb/yL3H4B/n/Ecd/fDpnTYiqwco/E07sa6pFIIU4="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit (finalAttrs) pname version src; + nativeBuildInputs = [ zstd ]; + # so the cargo fetcher won't try to run the `./configure` script + dontConfigure = true; + hash = "sha256-bD8MYufI87j//7dIAnCzmp4yoOaT81Zv1i7rjWpjPlc="; + }; + + nativeBuildInputs = [ + zstd + pkg-config + jq + cargo + rustc + rustPlatform.cargoSetupHook + ]; + + outputs = [ + "out" + "doc" + "man" + "dev" + ]; + + enableParallelBuilding = true; + + meta = { + description = "Utility to change the case of prose strings following natural language style guides"; + longDescription = '' + A CLI utility to cast strings to title-case (and other cases) according + to locale specific style guides including Turkish support. + ''; + homepage = "https://github.com/alerque/decasify"; + changelog = "https://github.com/alerque/decasify/raw/v${finalAttrs.version}/CHANGELOG.md"; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ + alerque + ]; + license = lib.licenses.lgpl3Only; + mainProgram = "decasify"; + }; +})