decasify: init at 0.8.0 (#355894)

This commit is contained in:
Doron Behar
2024-12-02 22:19:17 +02:00
committed by GitHub
3 changed files with 73 additions and 12 deletions
+65
View File
@@ -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";
};
})
+4 -5
View File
@@ -13,7 +13,6 @@
# buildInputs
libgit2,
typos,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -22,14 +21,15 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchurl {
url = "https://github.com/alerque/git-warp-time/releases/download/v${finalAttrs.version}/git-warp-time-${finalAttrs.version}.tar.zst";
sha256 = "sha256-Xh30nA77cJ7+UfKlIslnyD+93AtnQ+8P3sCFsG0DAUk=";
hash = "sha256-Xh30nA77cJ7+UfKlIslnyD+93AtnQ+8P3sCFsG0DAUk=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) src;
inherit (finalAttrs) pname version src;
nativeBuildInputs = [ zstd ];
# so the cargo fetcher won't try to run the `./configure` script
dontConfigure = true;
hash = "sha256-ozy8Mfl5fTJL2Sr22tCSnK30SOKaC9cL+g4lX6ivi9Q=";
hash = "sha256-bmClqtH1xU2KOKVbCOrgN14jpLKiA2ZMzWwrOiufwnQ=";
};
nativeBuildInputs = [
@@ -43,7 +43,6 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
libgit2
typos
];
env = {
+4 -7
View File
@@ -18,8 +18,6 @@
icu,
fontconfig,
libiconv,
stylua,
typos,
# FONTCONFIG_FILE
makeFontsConf,
gentium,
@@ -35,14 +33,15 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchurl {
url = "https://github.com/sile-typesetter/sile/releases/download/v${finalAttrs.version}/sile-${finalAttrs.version}.tar.zst";
sha256 = "sha256-PjU6Qfn+FTL3vt66mkIAn/uXWMPPlH8iK6B264ekIis=";
hash = "sha256-PjU6Qfn+FTL3vt66mkIAn/uXWMPPlH8iK6B264ekIis=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit (finalAttrs) src;
inherit (finalAttrs) pname version src;
nativeBuildInputs = [ zstd ];
# so the cargo fetcher won't try to run the `./configure` script
dontConfigure = true;
hash = "sha256-m21SyGtHwVCz+77pYq48Gjnrf/TLCLCf/IQ7AnZk+fo=";
hash = "sha256-iPkXEUC4U1m/ComIDo/J5kwkmM1QdowioNtnSnmMhJ0=";
};
nativeBuildInputs = [
@@ -63,8 +62,6 @@ stdenv.mkDerivation (finalAttrs: {
icu
fontconfig
libiconv
stylua
typos
];
configureFlags =