nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5
6 # nativeBuildInputs
7 zstd,
8 pkg-config,
9 jq,
10 cargo,
11 rustc,
12 rustPlatform,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "decasify";
17 version = "0.10.1";
18
19 src = fetchurl {
20 url = "https://github.com/alerque/decasify/releases/download/v${finalAttrs.version}/decasify-${finalAttrs.version}.tar.zst";
21 hash = "sha256-XPl4HfhkwhHRkfc64BTafeHgLK1lB4UHKP6loLn5Ruc=";
22 };
23
24 cargoDeps = rustPlatform.fetchCargoVendor {
25 inherit (finalAttrs) pname version src;
26 dontConfigure = true;
27 nativeBuildInputs = [ zstd ];
28 hash = "sha256-rbFacCK/HU2D7QbVfMgKr9VevfutBJJtbXbKodTmkrc=";
29 };
30
31 nativeBuildInputs = [
32 zstd
33 pkg-config
34 jq
35 cargo
36 rustc
37 rustPlatform.cargoSetupHook
38 ];
39
40 outputs = [
41 "out"
42 "doc"
43 "man"
44 "dev"
45 ];
46
47 enableParallelBuilding = true;
48
49 meta = {
50 description = "Utility to change the case of prose strings following natural language style guides";
51 longDescription = ''
52 A CLI utility to cast strings to title-case (and other cases) according
53 to locale specific style guides including Turkish support.
54 '';
55 homepage = "https://github.com/alerque/decasify";
56 changelog = "https://github.com/alerque/decasify/raw/v${finalAttrs.version}/CHANGELOG.md";
57 platforms = lib.platforms.unix;
58 maintainers = with lib.maintainers; [
59 alerque
60 ];
61 license = lib.licenses.lgpl3Only;
62 mainProgram = "decasify";
63 };
64})