From 0155c289b3cb83545a623de21490469ddc8e64c6 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:51:25 +0100 Subject: [PATCH 01/20] Add ansi cheatsheet An ansi escape code cheatsheet --- pkgs/by-name/an/ansi-cheatsheet/package.nix | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/an/ansi-cheatsheet/package.nix diff --git a/pkgs/by-name/an/ansi-cheatsheet/package.nix b/pkgs/by-name/an/ansi-cheatsheet/package.nix new file mode 100644 index 0000000000000..6b4fb15f250ec --- /dev/null +++ b/pkgs/by-name/an/ansi-cheatsheet/package.nix @@ -0,0 +1,34 @@ +{ + fetchFromGitHub, + lib, + stdenv, + zig, +}: +stdenv.mkDerivation { + pname = "ansi"; + version = "1.0.0"; + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "ansi"; + rev = "6b6d3b991706247af90f3f72c67238144f77a928"; + hash = "sha256-/JRG5qZlEOUJ/R37bl8x8okwlVLjlXUcSg7VMkulY0M="; + }; + buildInputs = [zig]; + buildPhase = '' + export LIBRARY_PATH=/usr/lib + export DYLD_LIBRARY_PATH=/usr/lib + cacheDir=$(mktemp -d) + zig build --global-cache-dir $cacheDir + ''; + installPhase = '' + mkdir -p $out/bin + cp zig-out/bin/ansi $out/bin + ''; + meta = with lib; { + description = "A cheatsheet for ansi escape codes"; + homepage = "https://github.com/NewDawn0/ansi"; + license = licenses.mit; + maintainers = [NewDawn0]; + platforms = platforms.all; + }; +} From 05d31ad9162c95bf9a7485141fff4dfe0a732011 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:52:23 +0100 Subject: [PATCH 02/20] Add ascii Weather An extensible terminal screensaver displaying weather inspired by rain.c --- pkgs/by-name/as/ascii-weather/package.nix | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/as/ascii-weather/package.nix diff --git a/pkgs/by-name/as/ascii-weather/package.nix b/pkgs/by-name/as/ascii-weather/package.nix new file mode 100644 index 0000000000000..3728b82ce9f1d --- /dev/null +++ b/pkgs/by-name/as/ascii-weather/package.nix @@ -0,0 +1,31 @@ +{ + fetchFromGitHub, + gcc, + gnumake, + lib, + ncurses, + stdenv, +}: +stdenv.mkDerivation { + name = "ascii-weather"; + version = "1.0.0"; + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "asciiWeather"; + rev = "70bf111647d064c3fcd0fe672b9fa697f4d060e4"; + hash = "sha256-Dcosx6iEnvFCMrmUS7gSLg8re5zl1BXWX/Nu6hr4Pgw="; + }; + buildInputs = [gcc gnumake ncurses]; + buildPhase = "make build"; + installPhase = '' + mkdir -p $out/bin + cp ascii-weather $out/bin + ''; + meta = with lib; { + description = "An ascii screensaver displaying different weather types"; + homepage = "https://github.com/NewDawn0/asciiWeather"; + license = licenses.mit; + maintainers = [NewDawn0]; + platforms = platforms.all; + }; +} From 85338823ee8c6fb715189122c97c7d5804ada61b Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:53:46 +0100 Subject: [PATCH 03/20] Add up package A fast way to cd up n directories --- pkgs/by-name/cd/cd-up/package.nix | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/cd/cd-up/package.nix diff --git a/pkgs/by-name/cd/cd-up/package.nix b/pkgs/by-name/cd/cd-up/package.nix new file mode 100644 index 0000000000000..68f86c92884af --- /dev/null +++ b/pkgs/by-name/cd/cd-up/package.nix @@ -0,0 +1,36 @@ +{ + fetchFromGitHub, + gcc, + gnumake, + lib, + stdenv, +}: +stdenv.mkDerivation { + pname = "up-core"; + name = "up"; + version = "1.0.0"; + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "up"; + rev = "1be487a84782bc62593326c35160fa782e2e7d7a"; + hash = "sha256-Ll6gHuWh2s7ke9Vqlw0H3tdKHIuvIC13TGHHKllEQ54="; + }; + installPhase = '' + mkdir -p $out/bin $out/lib + cp up-core $out/bin + echo "#!/usr/bin/env bash" > $out/lib/SOURCE_ME.sh + $out/bin/up-core --init >> $out/lib/SOURCE_ME.sh + chmod +x $out/lib/SOURCE_ME.sh + ''; + shellHook = '' + source $out/lib/SOURCE_ME.sh + ''; + buildInputs = [gcc gnumake]; + buildPhase = "make build"; + meta = with lib; { + description = "A fast way to go up relative directories"; + homepage = "https://github.com/NewDawn0/up"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; +} From 62f8c18e89b83de28641439f161de60735e5954a Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:54:31 +0100 Subject: [PATCH 04/20] Add note package Note a temporary note taking tool --- pkgs/by-name/no/note/package.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/by-name/no/note/package.nix diff --git a/pkgs/by-name/no/note/package.nix b/pkgs/by-name/no/note/package.nix new file mode 100644 index 0000000000000..c230c44bd5422 --- /dev/null +++ b/pkgs/by-name/no/note/package.nix @@ -0,0 +1,25 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, +}: +buildGoModule { + name = "note"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "note"; + rev = "e1876e4c7aec769ea3b3296d7df25175ba899652"; + hash = "sha256-mdQjtXRxh5oCz0ThsnnsujcO97yu0K8TaX6jefOpR6g="; + }; + + vendorHash = "sha256-kzMvksDjhqKlHvBwl0spOApFKHKM7lm0WG2hifP6+Ro="; + + meta = with lib; { + description = "A tool for taking temporary notes"; + homepage = "https://github.com/NewDawn0/note"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; +} From e5626b72d89ddb7c5df5c26b29e12a3cb2ea4bb1 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:55:41 +0100 Subject: [PATCH 05/20] Add vocab package A vocabulary learning tool --- pkgs/by-name/vo/vocab/package.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/by-name/vo/vocab/package.nix diff --git a/pkgs/by-name/vo/vocab/package.nix b/pkgs/by-name/vo/vocab/package.nix new file mode 100644 index 0000000000000..cd51fb6251467 --- /dev/null +++ b/pkgs/by-name/vo/vocab/package.nix @@ -0,0 +1,25 @@ +{ + fetchFromGitHub, + lib, + python3Packages, + translate, +}: +python3Packages.buildPythonPackage { + name = "vocab"; + version = "1.0.0"; + propagagedBuildInputs = [translate]; + buildInputs = with python3Packages; [setuptools]; + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "vocab"; + rev = "e1c11d2570b5f9e8d1a18652391cb6ab7623c574"; + hash = "sha256-3aPc+ivec8M+iD8ZDL+rWJrL+2jVhmcp2Bdc9jxpi3Y="; + }; + + meta = with lib; { + description = "Learn vocabulary efficiently using the CLI"; + homepage = "https://github.com/NewDawn0/vocab"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; +} From e9eeea3b38531d1bb63625f317f24b3d9b955542 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:57:50 +0100 Subject: [PATCH 06/20] Add notify package Send notifications and forms from your terminal --- pkgs/by-name/cl/cli-notify/package.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/by-name/cl/cli-notify/package.nix diff --git a/pkgs/by-name/cl/cli-notify/package.nix b/pkgs/by-name/cl/cli-notify/package.nix new file mode 100644 index 0000000000000..e49924d5321b0 --- /dev/null +++ b/pkgs/by-name/cl/cli-notify/package.nix @@ -0,0 +1,24 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, +}: +buildGoModule { + pname = "notify"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "notify"; + rev = "b40a50df9464602b21b25c48a99197af842270f3"; + hash = "sha256-PnNrb5qd8qJlR3pRkgf3pgG66KqlzBjzXg1LyfKbav4="; + }; + vendorHash = "sha256-pyNBOPzzJ+ZcIlGP0DP+MEbQt52XyqJJ/bo+OsmPwUk="; + + meta = with lib; { + description = "Create forms and send notifications from the CLI"; + homepage = "https://github.com/NewDawn0/notify"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; +} From ffd6fb824d1146410ad2ff5aabb67681a7ca10a7 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:58:28 +0100 Subject: [PATCH 07/20] Add dirstack package A cd quicklist interface --- pkgs/by-name/di/dirstack/package.nix | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/di/dirstack/package.nix diff --git a/pkgs/by-name/di/dirstack/package.nix b/pkgs/by-name/di/dirstack/package.nix new file mode 100644 index 0000000000000..fde4f61b6d70a --- /dev/null +++ b/pkgs/by-name/di/dirstack/package.nix @@ -0,0 +1,43 @@ +{ + fetchFromGitHub, + fzf, + lib, + rustPlatform, + stdenv, +}: let + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "dirStack"; + rev = "8ef0f19ae366868fb046f6acb0d396bc8436ef31"; + hash = "sha256-mzw3uDZ0eM81WJM0YNcOlMHs4fNMUBgwxS6VBSS+VS8="; + }; + meta = with lib; { + description = "A cd quicklist"; + homepage = "https://github.com/NewDawn0/dirStack"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; + pkg = rustPlatform.buildRustPackage { + inherit meta src; + pname = "dirStack"; + version = "1.0.0"; + propagatedBuildInputs = [fzf]; + cargoLock.lockFile = "${src}/Cargo.lock"; + }; +in + stdenv.mkDerivation { + inherit meta; + name = "dirStack-wrapped"; + version = "1.0.0"; + phases = ["installPhase"]; + installPhase = '' + mkdir -p $out/bin $out/lib + cp ${pkg}/bin/dirStack $out/bin/ + echo "#!/usr/bin/env bash" > $out/lib/SOURCE_ME.sh + $out/bin/dirStack --init >> $out/lib/SOURCE_ME.sh + chmod +x $out/lib/SOURCE_ME.sh + ''; + shellHook = '' + source $out/lib/SOURCE_ME.sh + ''; + } From 6b842f1e0d303a6a872d470860e42f97e64de098 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 01:59:18 +0100 Subject: [PATCH 08/20] Add ex package A wrapper to extract common archive types --- pkgs/by-name/ex/extract/package.nix | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ex/extract/package.nix diff --git a/pkgs/by-name/ex/extract/package.nix b/pkgs/by-name/ex/extract/package.nix new file mode 100644 index 0000000000000..83236578dcc53 --- /dev/null +++ b/pkgs/by-name/ex/extract/package.nix @@ -0,0 +1,34 @@ +{ + fetchFromGitHub, + gnutar, + gzip, + lib, + libarchive, + p7zip, + stdenv, + unzip, + zstd, +}: let + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "ex"; + rev = "136389950b0f60de5c84b5535663c237da7f0908"; + hash = "sha256-XDCBlaWTreKd3R10njsrhv7j0/OIsco7tcFjeG85mpE="; + }; +in + stdenv.mkDerivation { + pname = "ex"; + version = "1.0.0"; + inherit src; + propagatedBuildInputs = [gnutar gzip libarchive p7zip unzip zstd]; + installPhase = '' + mkdir -p "$out/bin"; + cp "${src}/ex" $out/bin/ex + ''; + meta = with lib; { + description = "A wrapper around extracting common archive formats"; + homepage = "https://github.com/NewDawn0/ex"; + license = licenses.mit; + maintainers = [NewDawn0]; + }; + } From 15dfbbebb3cd07714390412d389b13390836a65b Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 02:00:32 +0100 Subject: [PATCH 09/20] Add gen package An extensible project generator --- pkgs/by-name/ge/gen/package.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/ge/gen/package.nix diff --git a/pkgs/by-name/ge/gen/package.nix b/pkgs/by-name/ge/gen/package.nix new file mode 100644 index 0000000000000..2325af99be7b3 --- /dev/null +++ b/pkgs/by-name/ge/gen/package.nix @@ -0,0 +1,26 @@ +{ + fetchFromGitHub, + lib, + rustPlatform, +}: let + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "gen"; + rev = "1b9e403c92de1b80c1e5eae31f09b93609ad3241"; + sha256 = "sha256-DNMsuN3NVWiGJL+b2Qa0lNCp3q0xm/6yFxNUHNbURmE="; + }; +in + rustPlatform.buildRustPackage { + pname = "gen"; + version = "1.0.0"; + inherit src; + + cargoLock.lockFile = "${src}/Cargo.lock"; + + meta = with lib; { + description = "An extensible project generator"; + homepage = "https://github.com/NewDawn0/gen"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; + } From c87bb114e90984ec834452466fbbb786752cb678 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 02:07:05 +0100 Subject: [PATCH 10/20] Add nixie-clock package A cli inside nixie-tubes --- pkgs/by-name/ni/nixie-clock/package.nix | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/ni/nixie-clock/package.nix diff --git a/pkgs/by-name/ni/nixie-clock/package.nix b/pkgs/by-name/ni/nixie-clock/package.nix new file mode 100644 index 0000000000000..049ae73ef9d2d --- /dev/null +++ b/pkgs/by-name/ni/nixie-clock/package.nix @@ -0,0 +1,26 @@ +{ + fetchFromGitHub, + lib, + rustPlatform, +}: let + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "nixieClock"; + rev = "e6bde15c65b28da6318877bf0899aad915655b15"; + sha256 = "sha256-Lj98eghrucupnzdkMjGCPtGWO8NQ5ipQymsYUAl+XRU="; + }; +in + rustPlatform.buildRustPackage { + name = "nixie-clock"; + version = "1.0.0"; + inherit src; + + cargoLock.lockFile = "${src}/Cargo.lock"; + + meta = with lib; { + description = "A commandline clock inside nixie tubes"; + homepage = "https://github.com/NewDawn0/nixie-clock"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; + } From 480c61d16370efe4cc3d8ddec4f67c6692d47c82 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 02:07:27 +0100 Subject: [PATCH 11/20] Add shredder package Securely delete files --- pkgs/by-name/sh/shredder/package.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pkgs/by-name/sh/shredder/package.nix diff --git a/pkgs/by-name/sh/shredder/package.nix b/pkgs/by-name/sh/shredder/package.nix new file mode 100644 index 0000000000000..fa559ec38a10b --- /dev/null +++ b/pkgs/by-name/sh/shredder/package.nix @@ -0,0 +1,21 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, +}: +buildGoModule { + name = "shredder"; + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "shredder"; + rev = "5b5dd3506e0917341105b57edd98851a69dd5935"; + hash = "sha256-T/IVEutcEnMkMHiM2KEp4d8UzA06xsYbeMvRnBj2Me8="; + }; + vendorHash = null; + meta = with lib; { + description = "Secure file deletion for the paranoid ones"; + homepage = "https://github.com/NewDawn0/shredder"; + maintainers = with maintainers; [NewDawn0]; + license = licenses.mit; + }; +} From 415c3aab2d7e88f4087a909afad59b0079c626eb Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 02:07:55 +0100 Subject: [PATCH 12/20] Add translate Translate text using the cli --- pkgs/by-name/tr/translate/package.nix | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/tr/translate/package.nix diff --git a/pkgs/by-name/tr/translate/package.nix b/pkgs/by-name/tr/translate/package.nix new file mode 100644 index 0000000000000..aa4ca97774699 --- /dev/null +++ b/pkgs/by-name/tr/translate/package.nix @@ -0,0 +1,33 @@ +{ + darwin, + fetchFromGitHub, + lib, + libiconv, + rustPlatform, + stdenv, +}: let + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "tl"; + rev = "2e104c44e7afeda9d310acbcad1abb6f2571179a"; + sha256 = "sha256-WFTB2cQxR8wvdwSzA1yLkEjahrjUWXcJy7tkpRjerBQ="; + }; +in + rustPlatform.buildRustPackage { + pname = "tl"; + version = "1.0.0"; + inherit src; + + cargoLock.lockFile = "${src}/Cargo.lock"; + buildInputs = + [libiconv] + ++ lib.optional stdenv.hostPlatform.isDarwin + darwin.apple_sdk.frameworks.SystemConfiguration; + + meta = with lib; { + description = "A cli translator using Google Translate"; + homepage = "https://github.com/NewDawn0/tl"; + license = licenses.mit; + maintainers = with maintainers; [NewDawn0]; + }; + } From 16c0b6296e2dbc853953ef4ac371a7a470603a8c Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 18:56:13 +0100 Subject: [PATCH 13/20] add NewDawn0 to maintainers --- maintainers/maintainer-list.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b7fc737a9cd49..1e445516b430d 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15804,6 +15804,15 @@ githubId = 7845120; name = "Alex Martens"; }; + NewDawn0 = { + name = "Tom Suter"; + email = "newdawn.v0.0+nixpkgs@gmail.com"; + github = "NewDawn0"; + githubId = 92283105; + keys = [{ + fingerprint = "4E9A 21D3 494C DA43 7B0E C24D F407 CF2A 2834 53F3"; + }]; + }; nezia = { email = "anthony@nezia.dev"; github = "nezia1"; From 5ec3a719cddb0bf7004852d1d9be7146ee6c0619 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Fri, 13 Dec 2024 19:03:37 +0100 Subject: [PATCH 14/20] Formatting --- maintainers/maintainer-list.nix | 8 ++-- pkgs/by-name/an/ansi-cheatsheet/package.nix | 4 +- pkgs/by-name/as/ascii-weather/package.nix | 8 +++- pkgs/by-name/cd/cd-up/package.nix | 7 +++- pkgs/by-name/cl/cli-notify/package.nix | 2 +- pkgs/by-name/di/dirstack/package.nix | 39 +++++++++---------- pkgs/by-name/ex/extract/package.nix | 42 ++++++++++++--------- pkgs/by-name/ge/gen/package.nix | 27 ++++++------- pkgs/by-name/ni/nixie-clock/package.nix | 27 ++++++------- pkgs/by-name/no/note/package.nix | 2 +- pkgs/by-name/sh/shredder/package.nix | 2 +- pkgs/by-name/tr/translate/package.nix | 34 ++++++++--------- pkgs/by-name/vo/vocab/package.nix | 6 +-- 13 files changed, 114 insertions(+), 94 deletions(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1e445516b430d..7d56593d40d4b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15809,9 +15809,11 @@ email = "newdawn.v0.0+nixpkgs@gmail.com"; github = "NewDawn0"; githubId = 92283105; - keys = [{ - fingerprint = "4E9A 21D3 494C DA43 7B0E C24D F407 CF2A 2834 53F3"; - }]; + keys = [ + { + fingerprint = "4E9A 21D3 494C DA43 7B0E C24D F407 CF2A 2834 53F3"; + } + ]; }; nezia = { email = "anthony@nezia.dev"; diff --git a/pkgs/by-name/an/ansi-cheatsheet/package.nix b/pkgs/by-name/an/ansi-cheatsheet/package.nix index 6b4fb15f250ec..b1be1eed19c2d 100644 --- a/pkgs/by-name/an/ansi-cheatsheet/package.nix +++ b/pkgs/by-name/an/ansi-cheatsheet/package.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation { rev = "6b6d3b991706247af90f3f72c67238144f77a928"; hash = "sha256-/JRG5qZlEOUJ/R37bl8x8okwlVLjlXUcSg7VMkulY0M="; }; - buildInputs = [zig]; + buildInputs = [ zig ]; buildPhase = '' export LIBRARY_PATH=/usr/lib export DYLD_LIBRARY_PATH=/usr/lib @@ -28,7 +28,7 @@ stdenv.mkDerivation { description = "A cheatsheet for ansi escape codes"; homepage = "https://github.com/NewDawn0/ansi"; license = licenses.mit; - maintainers = [NewDawn0]; + maintainers = [ NewDawn0 ]; platforms = platforms.all; }; } diff --git a/pkgs/by-name/as/ascii-weather/package.nix b/pkgs/by-name/as/ascii-weather/package.nix index 3728b82ce9f1d..fb188d33fa11e 100644 --- a/pkgs/by-name/as/ascii-weather/package.nix +++ b/pkgs/by-name/as/ascii-weather/package.nix @@ -15,7 +15,11 @@ stdenv.mkDerivation { rev = "70bf111647d064c3fcd0fe672b9fa697f4d060e4"; hash = "sha256-Dcosx6iEnvFCMrmUS7gSLg8re5zl1BXWX/Nu6hr4Pgw="; }; - buildInputs = [gcc gnumake ncurses]; + buildInputs = [ + gcc + gnumake + ncurses + ]; buildPhase = "make build"; installPhase = '' mkdir -p $out/bin @@ -25,7 +29,7 @@ stdenv.mkDerivation { description = "An ascii screensaver displaying different weather types"; homepage = "https://github.com/NewDawn0/asciiWeather"; license = licenses.mit; - maintainers = [NewDawn0]; + maintainers = [ NewDawn0 ]; platforms = platforms.all; }; } diff --git a/pkgs/by-name/cd/cd-up/package.nix b/pkgs/by-name/cd/cd-up/package.nix index 68f86c92884af..62a7fd566d8cd 100644 --- a/pkgs/by-name/cd/cd-up/package.nix +++ b/pkgs/by-name/cd/cd-up/package.nix @@ -25,12 +25,15 @@ stdenv.mkDerivation { shellHook = '' source $out/lib/SOURCE_ME.sh ''; - buildInputs = [gcc gnumake]; + buildInputs = [ + gcc + gnumake + ]; buildPhase = "make build"; meta = with lib; { description = "A fast way to go up relative directories"; homepage = "https://github.com/NewDawn0/up"; - maintainers = with maintainers; [NewDawn0]; + maintainers = with maintainers; [ NewDawn0 ]; license = licenses.mit; }; } diff --git a/pkgs/by-name/cl/cli-notify/package.nix b/pkgs/by-name/cl/cli-notify/package.nix index e49924d5321b0..c0d3a04663c63 100644 --- a/pkgs/by-name/cl/cli-notify/package.nix +++ b/pkgs/by-name/cl/cli-notify/package.nix @@ -18,7 +18,7 @@ buildGoModule { meta = with lib; { description = "Create forms and send notifications from the CLI"; homepage = "https://github.com/NewDawn0/notify"; - maintainers = with maintainers; [NewDawn0]; + maintainers = with maintainers; [ NewDawn0 ]; license = licenses.mit; }; } diff --git a/pkgs/by-name/di/dirstack/package.nix b/pkgs/by-name/di/dirstack/package.nix index fde4f61b6d70a..1e51a9e329eea 100644 --- a/pkgs/by-name/di/dirstack/package.nix +++ b/pkgs/by-name/di/dirstack/package.nix @@ -4,7 +4,8 @@ lib, rustPlatform, stdenv, -}: let +}: +let src = fetchFromGitHub { owner = "NewDawn0"; repo = "dirStack"; @@ -14,30 +15,30 @@ meta = with lib; { description = "A cd quicklist"; homepage = "https://github.com/NewDawn0/dirStack"; - maintainers = with maintainers; [NewDawn0]; + maintainers = with maintainers; [ NewDawn0 ]; license = licenses.mit; }; pkg = rustPlatform.buildRustPackage { inherit meta src; pname = "dirStack"; version = "1.0.0"; - propagatedBuildInputs = [fzf]; + propagatedBuildInputs = [ fzf ]; cargoLock.lockFile = "${src}/Cargo.lock"; }; in - stdenv.mkDerivation { - inherit meta; - name = "dirStack-wrapped"; - version = "1.0.0"; - phases = ["installPhase"]; - installPhase = '' - mkdir -p $out/bin $out/lib - cp ${pkg}/bin/dirStack $out/bin/ - echo "#!/usr/bin/env bash" > $out/lib/SOURCE_ME.sh - $out/bin/dirStack --init >> $out/lib/SOURCE_ME.sh - chmod +x $out/lib/SOURCE_ME.sh - ''; - shellHook = '' - source $out/lib/SOURCE_ME.sh - ''; - } +stdenv.mkDerivation { + inherit meta; + name = "dirStack-wrapped"; + version = "1.0.0"; + phases = [ "installPhase" ]; + installPhase = '' + mkdir -p $out/bin $out/lib + cp ${pkg}/bin/dirStack $out/bin/ + echo "#!/usr/bin/env bash" > $out/lib/SOURCE_ME.sh + $out/bin/dirStack --init >> $out/lib/SOURCE_ME.sh + chmod +x $out/lib/SOURCE_ME.sh + ''; + shellHook = '' + source $out/lib/SOURCE_ME.sh + ''; +} diff --git a/pkgs/by-name/ex/extract/package.nix b/pkgs/by-name/ex/extract/package.nix index 83236578dcc53..73ab26e1155d7 100644 --- a/pkgs/by-name/ex/extract/package.nix +++ b/pkgs/by-name/ex/extract/package.nix @@ -8,7 +8,8 @@ stdenv, unzip, zstd, -}: let +}: +let src = fetchFromGitHub { owner = "NewDawn0"; repo = "ex"; @@ -16,19 +17,26 @@ hash = "sha256-XDCBlaWTreKd3R10njsrhv7j0/OIsco7tcFjeG85mpE="; }; in - stdenv.mkDerivation { - pname = "ex"; - version = "1.0.0"; - inherit src; - propagatedBuildInputs = [gnutar gzip libarchive p7zip unzip zstd]; - installPhase = '' - mkdir -p "$out/bin"; - cp "${src}/ex" $out/bin/ex - ''; - meta = with lib; { - description = "A wrapper around extracting common archive formats"; - homepage = "https://github.com/NewDawn0/ex"; - license = licenses.mit; - maintainers = [NewDawn0]; - }; - } +stdenv.mkDerivation { + pname = "ex"; + version = "1.0.0"; + inherit src; + propagatedBuildInputs = [ + gnutar + gzip + libarchive + p7zip + unzip + zstd + ]; + installPhase = '' + mkdir -p "$out/bin"; + cp "${src}/ex" $out/bin/ex + ''; + meta = with lib; { + description = "A wrapper around extracting common archive formats"; + homepage = "https://github.com/NewDawn0/ex"; + license = licenses.mit; + maintainers = [ NewDawn0 ]; + }; +} diff --git a/pkgs/by-name/ge/gen/package.nix b/pkgs/by-name/ge/gen/package.nix index 2325af99be7b3..eb7eb861afc04 100644 --- a/pkgs/by-name/ge/gen/package.nix +++ b/pkgs/by-name/ge/gen/package.nix @@ -2,7 +2,8 @@ fetchFromGitHub, lib, rustPlatform, -}: let +}: +let src = fetchFromGitHub { owner = "NewDawn0"; repo = "gen"; @@ -10,17 +11,17 @@ sha256 = "sha256-DNMsuN3NVWiGJL+b2Qa0lNCp3q0xm/6yFxNUHNbURmE="; }; in - rustPlatform.buildRustPackage { - pname = "gen"; - version = "1.0.0"; - inherit src; +rustPlatform.buildRustPackage { + pname = "gen"; + version = "1.0.0"; + inherit src; - cargoLock.lockFile = "${src}/Cargo.lock"; + cargoLock.lockFile = "${src}/Cargo.lock"; - meta = with lib; { - description = "An extensible project generator"; - homepage = "https://github.com/NewDawn0/gen"; - maintainers = with maintainers; [NewDawn0]; - license = licenses.mit; - }; - } + meta = with lib; { + description = "An extensible project generator"; + homepage = "https://github.com/NewDawn0/gen"; + maintainers = with maintainers; [ NewDawn0 ]; + license = licenses.mit; + }; +} diff --git a/pkgs/by-name/ni/nixie-clock/package.nix b/pkgs/by-name/ni/nixie-clock/package.nix index 049ae73ef9d2d..a8b2f67a4bbe0 100644 --- a/pkgs/by-name/ni/nixie-clock/package.nix +++ b/pkgs/by-name/ni/nixie-clock/package.nix @@ -2,7 +2,8 @@ fetchFromGitHub, lib, rustPlatform, -}: let +}: +let src = fetchFromGitHub { owner = "NewDawn0"; repo = "nixieClock"; @@ -10,17 +11,17 @@ sha256 = "sha256-Lj98eghrucupnzdkMjGCPtGWO8NQ5ipQymsYUAl+XRU="; }; in - rustPlatform.buildRustPackage { - name = "nixie-clock"; - version = "1.0.0"; - inherit src; +rustPlatform.buildRustPackage { + name = "nixie-clock"; + version = "1.0.0"; + inherit src; - cargoLock.lockFile = "${src}/Cargo.lock"; + cargoLock.lockFile = "${src}/Cargo.lock"; - meta = with lib; { - description = "A commandline clock inside nixie tubes"; - homepage = "https://github.com/NewDawn0/nixie-clock"; - maintainers = with maintainers; [NewDawn0]; - license = licenses.mit; - }; - } + meta = with lib; { + description = "A commandline clock inside nixie tubes"; + homepage = "https://github.com/NewDawn0/nixie-clock"; + maintainers = with maintainers; [ NewDawn0 ]; + license = licenses.mit; + }; +} diff --git a/pkgs/by-name/no/note/package.nix b/pkgs/by-name/no/note/package.nix index c230c44bd5422..141b8c9eda4fb 100644 --- a/pkgs/by-name/no/note/package.nix +++ b/pkgs/by-name/no/note/package.nix @@ -19,7 +19,7 @@ buildGoModule { meta = with lib; { description = "A tool for taking temporary notes"; homepage = "https://github.com/NewDawn0/note"; - maintainers = with maintainers; [NewDawn0]; + maintainers = with maintainers; [ NewDawn0 ]; license = licenses.mit; }; } diff --git a/pkgs/by-name/sh/shredder/package.nix b/pkgs/by-name/sh/shredder/package.nix index fa559ec38a10b..99482942429af 100644 --- a/pkgs/by-name/sh/shredder/package.nix +++ b/pkgs/by-name/sh/shredder/package.nix @@ -15,7 +15,7 @@ buildGoModule { meta = with lib; { description = "Secure file deletion for the paranoid ones"; homepage = "https://github.com/NewDawn0/shredder"; - maintainers = with maintainers; [NewDawn0]; + maintainers = with maintainers; [ NewDawn0 ]; license = licenses.mit; }; } diff --git a/pkgs/by-name/tr/translate/package.nix b/pkgs/by-name/tr/translate/package.nix index aa4ca97774699..068c4b0f97e6f 100644 --- a/pkgs/by-name/tr/translate/package.nix +++ b/pkgs/by-name/tr/translate/package.nix @@ -5,7 +5,8 @@ libiconv, rustPlatform, stdenv, -}: let +}: +let src = fetchFromGitHub { owner = "NewDawn0"; repo = "tl"; @@ -13,21 +14,20 @@ sha256 = "sha256-WFTB2cQxR8wvdwSzA1yLkEjahrjUWXcJy7tkpRjerBQ="; }; in - rustPlatform.buildRustPackage { - pname = "tl"; - version = "1.0.0"; - inherit src; +rustPlatform.buildRustPackage { + pname = "tl"; + version = "1.0.0"; + inherit src; - cargoLock.lockFile = "${src}/Cargo.lock"; - buildInputs = - [libiconv] - ++ lib.optional stdenv.hostPlatform.isDarwin - darwin.apple_sdk.frameworks.SystemConfiguration; + cargoLock.lockFile = "${src}/Cargo.lock"; + buildInputs = [ + libiconv + ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; - meta = with lib; { - description = "A cli translator using Google Translate"; - homepage = "https://github.com/NewDawn0/tl"; - license = licenses.mit; - maintainers = with maintainers; [NewDawn0]; - }; - } + meta = with lib; { + description = "A cli translator using Google Translate"; + homepage = "https://github.com/NewDawn0/tl"; + license = licenses.mit; + maintainers = with maintainers; [ NewDawn0 ]; + }; +} diff --git a/pkgs/by-name/vo/vocab/package.nix b/pkgs/by-name/vo/vocab/package.nix index cd51fb6251467..986334626af4d 100644 --- a/pkgs/by-name/vo/vocab/package.nix +++ b/pkgs/by-name/vo/vocab/package.nix @@ -7,8 +7,8 @@ python3Packages.buildPythonPackage { name = "vocab"; version = "1.0.0"; - propagagedBuildInputs = [translate]; - buildInputs = with python3Packages; [setuptools]; + propagagedBuildInputs = [ translate ]; + buildInputs = with python3Packages; [ setuptools ]; src = fetchFromGitHub { owner = "NewDawn0"; repo = "vocab"; @@ -19,7 +19,7 @@ python3Packages.buildPythonPackage { meta = with lib; { description = "Learn vocabulary efficiently using the CLI"; homepage = "https://github.com/NewDawn0/vocab"; - maintainers = with maintainers; [NewDawn0]; + maintainers = with maintainers; [ NewDawn0 ]; license = licenses.mit; }; } From 219e00a8cf148815742c42e3a7b28a5cb8c879c0 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sun, 15 Dec 2024 18:34:33 +0100 Subject: [PATCH 15/20] Applay meta changes - Remove `with lib;` in meta - Improve descriptions - Add long descriptions --- pkgs/by-name/an/ansi-cheatsheet/package.nix | 14 +++++++++----- pkgs/by-name/as/ascii-weather/package.nix | 14 +++++++++----- pkgs/by-name/cd/cd-up/package.nix | 12 ++++++++---- pkgs/by-name/cl/cli-notify/package.nix | 14 ++++++++------ pkgs/by-name/di/dirstack/package.nix | 11 +++++++++-- pkgs/by-name/ex/extract/package.nix | 13 +++++++++---- pkgs/by-name/ge/gen/package.nix | 15 +++++++++------ pkgs/by-name/ni/nixie-clock/package.nix | 13 +++++++++---- pkgs/by-name/no/note/package.nix | 15 +++++++++------ pkgs/by-name/sh/shredder/package.nix | 13 +++++++++---- pkgs/by-name/tr/translate/package.nix | 14 +++++++++----- pkgs/by-name/vo/vocab/package.nix | 14 +++++++++----- 12 files changed, 106 insertions(+), 56 deletions(-) diff --git a/pkgs/by-name/an/ansi-cheatsheet/package.nix b/pkgs/by-name/an/ansi-cheatsheet/package.nix index b1be1eed19c2d..6e81339a863e3 100644 --- a/pkgs/by-name/an/ansi-cheatsheet/package.nix +++ b/pkgs/by-name/an/ansi-cheatsheet/package.nix @@ -24,11 +24,15 @@ stdenv.mkDerivation { mkdir -p $out/bin cp zig-out/bin/ansi $out/bin ''; - meta = with lib; { - description = "A cheatsheet for ansi escape codes"; + meta = { + description = "A quick reference guide for ANSI escape codes"; + longDescription = '' + A handy cheatsheet for quickly looking up ANSI escape codes. + Perfect for developers working with terminal color codes and text formatting. + ''; homepage = "https://github.com/NewDawn0/ansi"; - license = licenses.mit; - maintainers = [ NewDawn0 ]; - platforms = platforms.all; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/as/ascii-weather/package.nix b/pkgs/by-name/as/ascii-weather/package.nix index fb188d33fa11e..2e047b5b45d07 100644 --- a/pkgs/by-name/as/ascii-weather/package.nix +++ b/pkgs/by-name/as/ascii-weather/package.nix @@ -25,11 +25,15 @@ stdenv.mkDerivation { mkdir -p $out/bin cp ascii-weather $out/bin ''; - meta = with lib; { - description = "An ascii screensaver displaying different weather types"; + meta = { + description = "An ASCII-based screensaver that shows various weather conditions"; + longDescription = '' + This screensaver uses ASCII art to display different weather types. + It's a creative and simple way to keep your terminal lively while providing weather updates. + ''; homepage = "https://github.com/NewDawn0/asciiWeather"; - license = licenses.mit; - maintainers = [ NewDawn0 ]; - platforms = platforms.all; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/cd/cd-up/package.nix b/pkgs/by-name/cd/cd-up/package.nix index 62a7fd566d8cd..8d601a91952bd 100644 --- a/pkgs/by-name/cd/cd-up/package.nix +++ b/pkgs/by-name/cd/cd-up/package.nix @@ -30,10 +30,14 @@ stdenv.mkDerivation { gnumake ]; buildPhase = "make build"; - meta = with lib; { - description = "A fast way to go up relative directories"; + meta = { + description = "A tool to navigate up directories more swiftly"; + longDescription = '' + This utility allows you to move up relative directories with ease, enhancing efficiency when working in nested file systems. It simplifies navigation with fewer keystrokes. + ''; homepage = "https://github.com/NewDawn0/up"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platmors = lib.platforms.all; }; } diff --git a/pkgs/by-name/cl/cli-notify/package.nix b/pkgs/by-name/cl/cli-notify/package.nix index c0d3a04663c63..58efab0b9f666 100644 --- a/pkgs/by-name/cl/cli-notify/package.nix +++ b/pkgs/by-name/cl/cli-notify/package.nix @@ -6,7 +6,6 @@ buildGoModule { pname = "notify"; version = "1.0.0"; - src = fetchFromGitHub { owner = "NewDawn0"; repo = "notify"; @@ -14,11 +13,14 @@ buildGoModule { hash = "sha256-PnNrb5qd8qJlR3pRkgf3pgG66KqlzBjzXg1LyfKbav4="; }; vendorHash = "sha256-pyNBOPzzJ+ZcIlGP0DP+MEbQt52XyqJJ/bo+OsmPwUk="; - - meta = with lib; { - description = "Create forms and send notifications from the CLI"; + meta = { + description = "A command-line utility for creating forms and sending notifications"; + longDescription = '' + This tool enables users to create customizable forms and send notifications directly from the command line. It's useful for automating repetitive tasks and handling user inputs easily. + ''; homepage = "https://github.com/NewDawn0/notify"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/di/dirstack/package.nix b/pkgs/by-name/di/dirstack/package.nix index 1e51a9e329eea..22fe3c928be1b 100644 --- a/pkgs/by-name/di/dirstack/package.nix +++ b/pkgs/by-name/di/dirstack/package.nix @@ -14,9 +14,16 @@ let }; meta = with lib; { description = "A cd quicklist"; + meta = { + description = "A fast directory navigation tool with a quicklist"; + longDescription = '' + This utility allows you to change directories quickly using a user defined list of frequently used paths. + It reduces the time spent on navigation and enhances workflow efficiency. + ''; homepage = "https://github.com/NewDawn0/dirStack"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; pkg = rustPlatform.buildRustPackage { inherit meta src; diff --git a/pkgs/by-name/ex/extract/package.nix b/pkgs/by-name/ex/extract/package.nix index 73ab26e1155d7..d109bfee08564 100644 --- a/pkgs/by-name/ex/extract/package.nix +++ b/pkgs/by-name/ex/extract/package.nix @@ -33,10 +33,15 @@ stdenv.mkDerivation { mkdir -p "$out/bin"; cp "${src}/ex" $out/bin/ex ''; - meta = with lib; { - description = "A wrapper around extracting common archive formats"; + meta = { + description = "A command-line wrapper for extracting common archive formats"; + longDescription = '' + This tool wraps around popular archive extraction commands, providing a simple interface to extract files from formats like ZIP, TAR, and more. + It streamlines file extraction for most pouplar archive formats. + ''; homepage = "https://github.com/NewDawn0/ex"; - license = licenses.mit; - maintainers = [ NewDawn0 ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/ge/gen/package.nix b/pkgs/by-name/ge/gen/package.nix index eb7eb861afc04..696fd6e7ddf2e 100644 --- a/pkgs/by-name/ge/gen/package.nix +++ b/pkgs/by-name/ge/gen/package.nix @@ -17,11 +17,14 @@ rustPlatform.buildRustPackage { inherit src; cargoLock.lockFile = "${src}/Cargo.lock"; - - meta = with lib; { - description = "An extensible project generator"; - homepage = "https://github.com/NewDawn0/gen"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + meta = { + description = "A flexible tool for generating customizable project templates"; + longDescription = '' + This extensible project generator allows you to quickly set up new projects with customizable templates. + Ideal for users who want to automate the creation of project skeletons with personalized settings. + ''; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/ni/nixie-clock/package.nix b/pkgs/by-name/ni/nixie-clock/package.nix index a8b2f67a4bbe0..8ff5a081e9cf5 100644 --- a/pkgs/by-name/ni/nixie-clock/package.nix +++ b/pkgs/by-name/ni/nixie-clock/package.nix @@ -17,11 +17,16 @@ rustPlatform.buildRustPackage { inherit src; cargoLock.lockFile = "${src}/Cargo.lock"; + meta = { + description = "A CLI clock that displays time in a Nixie tube style"; + longDescription = '' + A unique command-line clock that displays the current time using Nixie tube-style digits. + This charming design adds a vintage touch to your terminal while providing an accurate clock. + ''; - meta = with lib; { - description = "A commandline clock inside nixie tubes"; homepage = "https://github.com/NewDawn0/nixie-clock"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/no/note/package.nix b/pkgs/by-name/no/note/package.nix index 141b8c9eda4fb..c589a4a2621f9 100644 --- a/pkgs/by-name/no/note/package.nix +++ b/pkgs/by-name/no/note/package.nix @@ -13,13 +13,16 @@ buildGoModule { rev = "e1876e4c7aec769ea3b3296d7df25175ba899652"; hash = "sha256-mdQjtXRxh5oCz0ThsnnsujcO97yu0K8TaX6jefOpR6g="; }; - vendorHash = "sha256-kzMvksDjhqKlHvBwl0spOApFKHKM7lm0WG2hifP6+Ro="; - - meta = with lib; { - description = "A tool for taking temporary notes"; + meta = { + description = "A lightweight tool for capturing short-term notes"; + longDescription = '' + This tool is designed for quick note-taking. + It's perfect for jotting down temporary ideas or reminders from the command line without leaving any clutter. + ''; homepage = "https://github.com/NewDawn0/note"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/sh/shredder/package.nix b/pkgs/by-name/sh/shredder/package.nix index 99482942429af..25ffae59813bc 100644 --- a/pkgs/by-name/sh/shredder/package.nix +++ b/pkgs/by-name/sh/shredder/package.nix @@ -12,10 +12,15 @@ buildGoModule { hash = "sha256-T/IVEutcEnMkMHiM2KEp4d8UzA06xsYbeMvRnBj2Me8="; }; vendorHash = null; - meta = with lib; { - description = "Secure file deletion for the paranoid ones"; + meta = { + description = "A tool for securely deleting files to ensure privacy"; + longDescription = '' + This tool securely deletes files, ensuring they cannot be recovered. + Ideal for users who require extra privacy and need to ensure sensitive data is completely erased from their system. + ''; homepage = "https://github.com/NewDawn0/shredder"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/tr/translate/package.nix b/pkgs/by-name/tr/translate/package.nix index 068c4b0f97e6f..a9c9a416cdfcc 100644 --- a/pkgs/by-name/tr/translate/package.nix +++ b/pkgs/by-name/tr/translate/package.nix @@ -23,11 +23,15 @@ rustPlatform.buildRustPackage { buildInputs = [ libiconv ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; - - meta = with lib; { - description = "A cli translator using Google Translate"; + meta = { + description = "A command-line translator powered by Google Translate"; + longDescription = '' + This command-line tool leverages Google Translate to translate text quickly between languages. + It can be used to translate command-line output, allowing users to work with any language from the terminal. + ''; homepage = "https://github.com/NewDawn0/tl"; - license = licenses.mit; - maintainers = with maintainers; [ NewDawn0 ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/vo/vocab/package.nix b/pkgs/by-name/vo/vocab/package.nix index 986334626af4d..e9946ee85d817 100644 --- a/pkgs/by-name/vo/vocab/package.nix +++ b/pkgs/by-name/vo/vocab/package.nix @@ -15,11 +15,15 @@ python3Packages.buildPythonPackage { rev = "e1c11d2570b5f9e8d1a18652391cb6ab7623c574"; hash = "sha256-3aPc+ivec8M+iD8ZDL+rWJrL+2jVhmcp2Bdc9jxpi3Y="; }; - - meta = with lib; { - description = "Learn vocabulary efficiently using the CLI"; + meta = { + description = "An efficient CLI-based tool for vocabulary learning"; + longDescription = '' + This command-line tool helps you learn and memorize vocabulary efficiently. + It provides a simple way to learn vocabulary from a file, with autocorrection and automatic translation. + ''; homepage = "https://github.com/NewDawn0/vocab"; - maintainers = with maintainers; [ NewDawn0 ]; - license = licenses.mit; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ NewDawn0 ]; + platforms = lib.platforms.all; }; } From 6169c3427ef02aa471709ea164a506ca87d666b7 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sun, 15 Dec 2024 18:37:02 +0100 Subject: [PATCH 16/20] Change name to pname & version --- pkgs/by-name/di/dirstack/package.nix | 10 ++++------ pkgs/by-name/no/note/package.nix | 3 +-- pkgs/by-name/sh/shredder/package.nix | 3 ++- pkgs/by-name/vo/vocab/package.nix | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/di/dirstack/package.nix b/pkgs/by-name/di/dirstack/package.nix index 22fe3c928be1b..9c23a6a21e17b 100644 --- a/pkgs/by-name/di/dirstack/package.nix +++ b/pkgs/by-name/di/dirstack/package.nix @@ -14,6 +14,7 @@ let }; meta = with lib; { description = "A cd quicklist"; + version = "1.0.0"; meta = { description = "A fast directory navigation tool with a quicklist"; longDescription = '' @@ -26,18 +27,15 @@ let platforms = lib.platforms.all; }; pkg = rustPlatform.buildRustPackage { - inherit meta src; + inherit meta version; pname = "dirStack"; - version = "1.0.0"; propagatedBuildInputs = [ fzf ]; cargoLock.lockFile = "${src}/Cargo.lock"; }; in stdenv.mkDerivation { - inherit meta; - name = "dirStack-wrapped"; - version = "1.0.0"; - phases = [ "installPhase" ]; + inherit meta version; + pname = "dirStack-wrapped"; installPhase = '' mkdir -p $out/bin $out/lib cp ${pkg}/bin/dirStack $out/bin/ diff --git a/pkgs/by-name/no/note/package.nix b/pkgs/by-name/no/note/package.nix index c589a4a2621f9..a3a7f6eb7d4ff 100644 --- a/pkgs/by-name/no/note/package.nix +++ b/pkgs/by-name/no/note/package.nix @@ -4,9 +4,8 @@ lib, }: buildGoModule { - name = "note"; + pname = "note"; version = "1.0.0"; - src = fetchFromGitHub { owner = "NewDawn0"; repo = "note"; diff --git a/pkgs/by-name/sh/shredder/package.nix b/pkgs/by-name/sh/shredder/package.nix index 25ffae59813bc..84ffd4ac8f0e5 100644 --- a/pkgs/by-name/sh/shredder/package.nix +++ b/pkgs/by-name/sh/shredder/package.nix @@ -4,7 +4,8 @@ lib, }: buildGoModule { - name = "shredder"; + pname = "shredder"; + version = "1.0.0"; src = fetchFromGitHub { owner = "NewDawn0"; repo = "shredder"; diff --git a/pkgs/by-name/vo/vocab/package.nix b/pkgs/by-name/vo/vocab/package.nix index e9946ee85d817..4f2a5bc0df39f 100644 --- a/pkgs/by-name/vo/vocab/package.nix +++ b/pkgs/by-name/vo/vocab/package.nix @@ -5,7 +5,7 @@ translate, }: python3Packages.buildPythonPackage { - name = "vocab"; + pname = "vocab"; version = "1.0.0"; propagagedBuildInputs = [ translate ]; buildInputs = with python3Packages; [ setuptools ]; From 998be61216c08f1990b88e322f7c74572d775eac Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sun, 15 Dec 2024 18:37:34 +0100 Subject: [PATCH 17/20] Use optional /usr/lib library path --- pkgs/by-name/an/ansi-cheatsheet/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/an/ansi-cheatsheet/package.nix b/pkgs/by-name/an/ansi-cheatsheet/package.nix index 6e81339a863e3..a6f76d8d7428e 100644 --- a/pkgs/by-name/an/ansi-cheatsheet/package.nix +++ b/pkgs/by-name/an/ansi-cheatsheet/package.nix @@ -15,8 +15,11 @@ stdenv.mkDerivation { }; buildInputs = [ zig ]; buildPhase = '' - export LIBRARY_PATH=/usr/lib - export DYLD_LIBRARY_PATH=/usr/lib + ${lib.optionalString stdenv.hostPlatform.isDarwin '' + # On Darwin the executable needs to link to libSystem found in /usr/lib/ + export LIBRARY_PATH=/usr/lib + export DYLD_LIBRARY_PATH=/usr/lib + ''} cacheDir=$(mktemp -d) zig build --global-cache-dir $cacheDir ''; From 6817b6a385c3f6db5b499a6f1b11c4d06e231b61 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sun, 15 Dec 2024 18:40:03 +0100 Subject: [PATCH 18/20] Use --- pkgs/by-name/as/ascii-weather/package.nix | 14 +++----------- pkgs/by-name/cd/cd-up/package.nix | 11 ++--------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/as/ascii-weather/package.nix b/pkgs/by-name/as/ascii-weather/package.nix index 2e047b5b45d07..8b32218eee62a 100644 --- a/pkgs/by-name/as/ascii-weather/package.nix +++ b/pkgs/by-name/as/ascii-weather/package.nix @@ -1,13 +1,11 @@ { fetchFromGitHub, - gcc, - gnumake, lib, ncurses, - stdenv, + gccStdenv, }: -stdenv.mkDerivation { - name = "ascii-weather"; +gccStdenv.mkDerivation { + pname = "ascii-weather"; version = "1.0.0"; src = fetchFromGitHub { owner = "NewDawn0"; @@ -15,12 +13,6 @@ stdenv.mkDerivation { rev = "70bf111647d064c3fcd0fe672b9fa697f4d060e4"; hash = "sha256-Dcosx6iEnvFCMrmUS7gSLg8re5zl1BXWX/Nu6hr4Pgw="; }; - buildInputs = [ - gcc - gnumake - ncurses - ]; - buildPhase = "make build"; installPhase = '' mkdir -p $out/bin cp ascii-weather $out/bin diff --git a/pkgs/by-name/cd/cd-up/package.nix b/pkgs/by-name/cd/cd-up/package.nix index 8d601a91952bd..62b5ddc592808 100644 --- a/pkgs/by-name/cd/cd-up/package.nix +++ b/pkgs/by-name/cd/cd-up/package.nix @@ -1,11 +1,9 @@ { fetchFromGitHub, - gcc, - gnumake, lib, - stdenv, + gccStdenv, }: -stdenv.mkDerivation { +gccStdenv.mkDerivation { pname = "up-core"; name = "up"; version = "1.0.0"; @@ -25,11 +23,6 @@ stdenv.mkDerivation { shellHook = '' source $out/lib/SOURCE_ME.sh ''; - buildInputs = [ - gcc - gnumake - ]; - buildPhase = "make build"; meta = { description = "A tool to navigate up directories more swiftly"; longDescription = '' From 686710ad67fc0a41cb7172ceab30106645d7be87 Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sun, 15 Dec 2024 18:41:51 +0100 Subject: [PATCH 19/20] Use cargoHash + use install command --- pkgs/by-name/an/ansi-cheatsheet/package.nix | 5 +--- pkgs/by-name/as/ascii-weather/package.nix | 6 ++--- pkgs/by-name/cd/cd-up/package.nix | 9 +++---- pkgs/by-name/di/dirstack/package.nix | 28 +++++++++++---------- pkgs/by-name/ex/extract/package.nix | 5 +--- pkgs/by-name/ge/gen/package.nix | 12 +++------ pkgs/by-name/ni/nixie-clock/package.nix | 12 +++------ pkgs/by-name/tr/translate/package.nix | 12 +++------ 8 files changed, 35 insertions(+), 54 deletions(-) diff --git a/pkgs/by-name/an/ansi-cheatsheet/package.nix b/pkgs/by-name/an/ansi-cheatsheet/package.nix index a6f76d8d7428e..af68e13bf2e18 100644 --- a/pkgs/by-name/an/ansi-cheatsheet/package.nix +++ b/pkgs/by-name/an/ansi-cheatsheet/package.nix @@ -23,10 +23,7 @@ stdenv.mkDerivation { cacheDir=$(mktemp -d) zig build --global-cache-dir $cacheDir ''; - installPhase = '' - mkdir -p $out/bin - cp zig-out/bin/ansi $out/bin - ''; + installPhase = "install -D zig-out/bin/ansi -t $out/bin"; meta = { description = "A quick reference guide for ANSI escape codes"; longDescription = '' diff --git a/pkgs/by-name/as/ascii-weather/package.nix b/pkgs/by-name/as/ascii-weather/package.nix index 8b32218eee62a..329c78aa1b914 100644 --- a/pkgs/by-name/as/ascii-weather/package.nix +++ b/pkgs/by-name/as/ascii-weather/package.nix @@ -13,10 +13,8 @@ gccStdenv.mkDerivation { rev = "70bf111647d064c3fcd0fe672b9fa697f4d060e4"; hash = "sha256-Dcosx6iEnvFCMrmUS7gSLg8re5zl1BXWX/Nu6hr4Pgw="; }; - installPhase = '' - mkdir -p $out/bin - cp ascii-weather $out/bin - ''; + buildInputs = [ ncurses ]; + installPhase = "install -D ascii-weather -t $out/bin"; meta = { description = "An ASCII-based screensaver that shows various weather conditions"; longDescription = '' diff --git a/pkgs/by-name/cd/cd-up/package.nix b/pkgs/by-name/cd/cd-up/package.nix index 62b5ddc592808..1755b58ff320a 100644 --- a/pkgs/by-name/cd/cd-up/package.nix +++ b/pkgs/by-name/cd/cd-up/package.nix @@ -1,11 +1,11 @@ { fetchFromGitHub, lib, + runtimeShell, gccStdenv, }: gccStdenv.mkDerivation { pname = "up-core"; - name = "up"; version = "1.0.0"; src = fetchFromGitHub { owner = "NewDawn0"; @@ -14,11 +14,10 @@ gccStdenv.mkDerivation { hash = "sha256-Ll6gHuWh2s7ke9Vqlw0H3tdKHIuvIC13TGHHKllEQ54="; }; installPhase = '' - mkdir -p $out/bin $out/lib - cp up-core $out/bin - echo "#!/usr/bin/env bash" > $out/lib/SOURCE_ME.sh + install -D up-core -t $out/bin + mkdir -p $out/lib + echo "#!/${runtimeShell}" > $out/lib/SOURCE_ME.sh $out/bin/up-core --init >> $out/lib/SOURCE_ME.sh - chmod +x $out/lib/SOURCE_ME.sh ''; shellHook = '' source $out/lib/SOURCE_ME.sh diff --git a/pkgs/by-name/di/dirstack/package.nix b/pkgs/by-name/di/dirstack/package.nix index 9c23a6a21e17b..c32f997352493 100644 --- a/pkgs/by-name/di/dirstack/package.nix +++ b/pkgs/by-name/di/dirstack/package.nix @@ -2,18 +2,11 @@ fetchFromGitHub, fzf, lib, + runtimeShell, rustPlatform, stdenv, }: let - src = fetchFromGitHub { - owner = "NewDawn0"; - repo = "dirStack"; - rev = "8ef0f19ae366868fb046f6acb0d396bc8436ef31"; - hash = "sha256-mzw3uDZ0eM81WJM0YNcOlMHs4fNMUBgwxS6VBSS+VS8="; - }; - meta = with lib; { - description = "A cd quicklist"; version = "1.0.0"; meta = { description = "A fast directory navigation tool with a quicklist"; @@ -29,19 +22,28 @@ let pkg = rustPlatform.buildRustPackage { inherit meta version; pname = "dirStack"; + src = fetchFromGitHub { + owner = "NewDawn0"; + repo = "dirStack"; + rev = "8ef0f19ae366868fb046f6acb0d396bc8436ef31"; + hash = "sha256-mzw3uDZ0eM81WJM0YNcOlMHs4fNMUBgwxS6VBSS+VS8="; + }; + cargoHash = "sha256-y3ELhG4877X6Cysg9NMaD/QC3SfPBdk2Vh1QeHF1+pU="; propagatedBuildInputs = [ fzf ]; - cargoLock.lockFile = "${src}/Cargo.lock"; }; in stdenv.mkDerivation { inherit meta version; pname = "dirStack-wrapped"; + src = null; + dontUnpack = true; + dontBuild = true; + dontConfigure = true; installPhase = '' - mkdir -p $out/bin $out/lib - cp ${pkg}/bin/dirStack $out/bin/ - echo "#!/usr/bin/env bash" > $out/lib/SOURCE_ME.sh + install -D ${pkg}/bin/dirStack -t $out/bin + mkdir -p $out/lib + echo "#!/${runtimeShell}" > $out/lib/SOURCE_ME.sh $out/bin/dirStack --init >> $out/lib/SOURCE_ME.sh - chmod +x $out/lib/SOURCE_ME.sh ''; shellHook = '' source $out/lib/SOURCE_ME.sh diff --git a/pkgs/by-name/ex/extract/package.nix b/pkgs/by-name/ex/extract/package.nix index d109bfee08564..fd0193cc01bdb 100644 --- a/pkgs/by-name/ex/extract/package.nix +++ b/pkgs/by-name/ex/extract/package.nix @@ -29,10 +29,7 @@ stdenv.mkDerivation { unzip zstd ]; - installPhase = '' - mkdir -p "$out/bin"; - cp "${src}/ex" $out/bin/ex - ''; + installPhase = "install -D -m 755 ${src}/ex -t $out/bin"; meta = { description = "A command-line wrapper for extracting common archive formats"; longDescription = '' diff --git a/pkgs/by-name/ge/gen/package.nix b/pkgs/by-name/ge/gen/package.nix index 696fd6e7ddf2e..a6eaf166719f2 100644 --- a/pkgs/by-name/ge/gen/package.nix +++ b/pkgs/by-name/ge/gen/package.nix @@ -3,20 +3,16 @@ lib, rustPlatform, }: -let +rustPlatform.buildRustPackage { + pname = "gen"; + version = "1.0.0"; src = fetchFromGitHub { owner = "NewDawn0"; repo = "gen"; rev = "1b9e403c92de1b80c1e5eae31f09b93609ad3241"; sha256 = "sha256-DNMsuN3NVWiGJL+b2Qa0lNCp3q0xm/6yFxNUHNbURmE="; }; -in -rustPlatform.buildRustPackage { - pname = "gen"; - version = "1.0.0"; - inherit src; - - cargoLock.lockFile = "${src}/Cargo.lock"; + cargoHash = "sha256-tSWxKcKbiic+XfD/y51WSdim7T7cb34BSumv8i7m48Y="; meta = { description = "A flexible tool for generating customizable project templates"; longDescription = '' diff --git a/pkgs/by-name/ni/nixie-clock/package.nix b/pkgs/by-name/ni/nixie-clock/package.nix index 8ff5a081e9cf5..73f215278f2f2 100644 --- a/pkgs/by-name/ni/nixie-clock/package.nix +++ b/pkgs/by-name/ni/nixie-clock/package.nix @@ -3,20 +3,16 @@ lib, rustPlatform, }: -let +rustPlatform.buildRustPackage { + pname = "nixie-clock"; + version = "1.0.0"; src = fetchFromGitHub { owner = "NewDawn0"; repo = "nixieClock"; rev = "e6bde15c65b28da6318877bf0899aad915655b15"; sha256 = "sha256-Lj98eghrucupnzdkMjGCPtGWO8NQ5ipQymsYUAl+XRU="; }; -in -rustPlatform.buildRustPackage { - name = "nixie-clock"; - version = "1.0.0"; - inherit src; - - cargoLock.lockFile = "${src}/Cargo.lock"; + cargoHash = "sha256-oqiXeX7ct2miDNoURF7+9lElebX4coVox+qzPgUBbj0="; meta = { description = "A CLI clock that displays time in a Nixie tube style"; longDescription = '' diff --git a/pkgs/by-name/tr/translate/package.nix b/pkgs/by-name/tr/translate/package.nix index a9c9a416cdfcc..a2f78a8e71430 100644 --- a/pkgs/by-name/tr/translate/package.nix +++ b/pkgs/by-name/tr/translate/package.nix @@ -6,20 +6,16 @@ rustPlatform, stdenv, }: -let +rustPlatform.buildRustPackage { + pname = "tl"; + version = "1.0.0"; src = fetchFromGitHub { owner = "NewDawn0"; repo = "tl"; rev = "2e104c44e7afeda9d310acbcad1abb6f2571179a"; sha256 = "sha256-WFTB2cQxR8wvdwSzA1yLkEjahrjUWXcJy7tkpRjerBQ="; }; -in -rustPlatform.buildRustPackage { - pname = "tl"; - version = "1.0.0"; - inherit src; - - cargoLock.lockFile = "${src}/Cargo.lock"; + cargoHash = "sha256-8XnIFAWMkpiCsEsg7FrRrqrLYzHVA38RmDYt9L6NfCk="; buildInputs = [ libiconv ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; From 5dab7571fa4d3fbfcefdc0eed7a37c895311fcdd Mon Sep 17 00:00:00 2001 From: NewDawn0 Date: Sun, 15 Dec 2024 22:31:50 +0100 Subject: [PATCH 20/20] Use tagged version --- pkgs/by-name/an/ansi-cheatsheet/package.nix | 4 ++-- pkgs/by-name/as/ascii-weather/package.nix | 4 ++-- pkgs/by-name/cd/cd-up/package.nix | 4 ++-- pkgs/by-name/cl/cli-notify/package.nix | 4 ++-- pkgs/by-name/di/dirstack/package.nix | 6 +++--- pkgs/by-name/ex/extract/package.nix | 4 ++-- pkgs/by-name/ge/gen/package.nix | 6 +++--- pkgs/by-name/ni/nixie-clock/package.nix | 7 +++---- pkgs/by-name/no/note/package.nix | 4 ++-- pkgs/by-name/sh/shredder/package.nix | 4 ++-- pkgs/by-name/tr/translate/package.nix | 6 +++--- pkgs/by-name/vo/vocab/package.nix | 4 ++-- 12 files changed, 28 insertions(+), 29 deletions(-) diff --git a/pkgs/by-name/an/ansi-cheatsheet/package.nix b/pkgs/by-name/an/ansi-cheatsheet/package.nix index af68e13bf2e18..66edbd8725ccb 100644 --- a/pkgs/by-name/an/ansi-cheatsheet/package.nix +++ b/pkgs/by-name/an/ansi-cheatsheet/package.nix @@ -10,8 +10,8 @@ stdenv.mkDerivation { src = fetchFromGitHub { owner = "NewDawn0"; repo = "ansi"; - rev = "6b6d3b991706247af90f3f72c67238144f77a928"; - hash = "sha256-/JRG5qZlEOUJ/R37bl8x8okwlVLjlXUcSg7VMkulY0M="; + rev = "v1.0.0"; + hash = "sha256-0ahM9eZInPNSA6K463Ul4ot2PPplBNI2ypBRwfG6Lpo="; }; buildInputs = [ zig ]; buildPhase = '' diff --git a/pkgs/by-name/as/ascii-weather/package.nix b/pkgs/by-name/as/ascii-weather/package.nix index 329c78aa1b914..27b563bfcb014 100644 --- a/pkgs/by-name/as/ascii-weather/package.nix +++ b/pkgs/by-name/as/ascii-weather/package.nix @@ -10,8 +10,8 @@ gccStdenv.mkDerivation { src = fetchFromGitHub { owner = "NewDawn0"; repo = "asciiWeather"; - rev = "70bf111647d064c3fcd0fe672b9fa697f4d060e4"; - hash = "sha256-Dcosx6iEnvFCMrmUS7gSLg8re5zl1BXWX/Nu6hr4Pgw="; + rev = "v1.0.0"; + hash = "sha256-8ntnVMQWeEO47gjP4G/GMCQ7NlsdjBsXU0+LMC6fr+U="; }; buildInputs = [ ncurses ]; installPhase = "install -D ascii-weather -t $out/bin"; diff --git a/pkgs/by-name/cd/cd-up/package.nix b/pkgs/by-name/cd/cd-up/package.nix index 1755b58ff320a..852e00fa5b1b0 100644 --- a/pkgs/by-name/cd/cd-up/package.nix +++ b/pkgs/by-name/cd/cd-up/package.nix @@ -10,8 +10,8 @@ gccStdenv.mkDerivation { src = fetchFromGitHub { owner = "NewDawn0"; repo = "up"; - rev = "1be487a84782bc62593326c35160fa782e2e7d7a"; - hash = "sha256-Ll6gHuWh2s7ke9Vqlw0H3tdKHIuvIC13TGHHKllEQ54="; + rev = "v1.0.0"; + hash = "sha256-gLIkwNFxXkGCQiRTri0EJZSRC7xbvhUwaCmTQDqs2B8="; }; installPhase = '' install -D up-core -t $out/bin diff --git a/pkgs/by-name/cl/cli-notify/package.nix b/pkgs/by-name/cl/cli-notify/package.nix index 58efab0b9f666..39d5eb522d041 100644 --- a/pkgs/by-name/cl/cli-notify/package.nix +++ b/pkgs/by-name/cl/cli-notify/package.nix @@ -9,8 +9,8 @@ buildGoModule { src = fetchFromGitHub { owner = "NewDawn0"; repo = "notify"; - rev = "b40a50df9464602b21b25c48a99197af842270f3"; - hash = "sha256-PnNrb5qd8qJlR3pRkgf3pgG66KqlzBjzXg1LyfKbav4="; + rev = "v1.0.0"; + hash = "sha256-tne+vabRlVIpASvqioUBm/ANsWszy1MQ7bkFr1joMrg="; }; vendorHash = "sha256-pyNBOPzzJ+ZcIlGP0DP+MEbQt52XyqJJ/bo+OsmPwUk="; meta = { diff --git a/pkgs/by-name/di/dirstack/package.nix b/pkgs/by-name/di/dirstack/package.nix index c32f997352493..85f88f7971d30 100644 --- a/pkgs/by-name/di/dirstack/package.nix +++ b/pkgs/by-name/di/dirstack/package.nix @@ -25,10 +25,10 @@ let src = fetchFromGitHub { owner = "NewDawn0"; repo = "dirStack"; - rev = "8ef0f19ae366868fb046f6acb0d396bc8436ef31"; - hash = "sha256-mzw3uDZ0eM81WJM0YNcOlMHs4fNMUBgwxS6VBSS+VS8="; + rev = "v1.0.0"; + hash = "sha256-TeHldruUsG49o0tXm26prSmGTmBiRRkL7q7VZghrsXM="; }; - cargoHash = "sha256-y3ELhG4877X6Cysg9NMaD/QC3SfPBdk2Vh1QeHF1+pU="; + cargoHash = "sha256-ismRyvNGqWkACVwz7+2EFh114DevtwWGtdbB/w4Yqz8="; propagatedBuildInputs = [ fzf ]; }; in diff --git a/pkgs/by-name/ex/extract/package.nix b/pkgs/by-name/ex/extract/package.nix index fd0193cc01bdb..2e1b6c81dd1fa 100644 --- a/pkgs/by-name/ex/extract/package.nix +++ b/pkgs/by-name/ex/extract/package.nix @@ -13,8 +13,8 @@ let src = fetchFromGitHub { owner = "NewDawn0"; repo = "ex"; - rev = "136389950b0f60de5c84b5535663c237da7f0908"; - hash = "sha256-XDCBlaWTreKd3R10njsrhv7j0/OIsco7tcFjeG85mpE="; + rev = "v1.0.0"; + hash = "sha256-Zk4DGs/KZXr1CJ4VKJGqru4SM5eXHh5m5NbOuoAhZeE="; }; in stdenv.mkDerivation { diff --git a/pkgs/by-name/ge/gen/package.nix b/pkgs/by-name/ge/gen/package.nix index a6eaf166719f2..a6cf9940af1c7 100644 --- a/pkgs/by-name/ge/gen/package.nix +++ b/pkgs/by-name/ge/gen/package.nix @@ -9,10 +9,10 @@ rustPlatform.buildRustPackage { src = fetchFromGitHub { owner = "NewDawn0"; repo = "gen"; - rev = "1b9e403c92de1b80c1e5eae31f09b93609ad3241"; - sha256 = "sha256-DNMsuN3NVWiGJL+b2Qa0lNCp3q0xm/6yFxNUHNbURmE="; + rev = "v1.0.0"; + sha256 = lib.fakeHash; }; - cargoHash = "sha256-tSWxKcKbiic+XfD/y51WSdim7T7cb34BSumv8i7m48Y="; + cargoHash = lib.fakeHash; meta = { description = "A flexible tool for generating customizable project templates"; longDescription = '' diff --git a/pkgs/by-name/ni/nixie-clock/package.nix b/pkgs/by-name/ni/nixie-clock/package.nix index 73f215278f2f2..db5bb9b634bb0 100644 --- a/pkgs/by-name/ni/nixie-clock/package.nix +++ b/pkgs/by-name/ni/nixie-clock/package.nix @@ -9,17 +9,16 @@ rustPlatform.buildRustPackage { src = fetchFromGitHub { owner = "NewDawn0"; repo = "nixieClock"; - rev = "e6bde15c65b28da6318877bf0899aad915655b15"; - sha256 = "sha256-Lj98eghrucupnzdkMjGCPtGWO8NQ5ipQymsYUAl+XRU="; + rev = "v1.0.0"; + sha256 = lib.fakeHash; }; - cargoHash = "sha256-oqiXeX7ct2miDNoURF7+9lElebX4coVox+qzPgUBbj0="; + cargoHash = lib.fakeHash; meta = { description = "A CLI clock that displays time in a Nixie tube style"; longDescription = '' A unique command-line clock that displays the current time using Nixie tube-style digits. This charming design adds a vintage touch to your terminal while providing an accurate clock. ''; - homepage = "https://github.com/NewDawn0/nixie-clock"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ NewDawn0 ]; diff --git a/pkgs/by-name/no/note/package.nix b/pkgs/by-name/no/note/package.nix index a3a7f6eb7d4ff..e228498a49679 100644 --- a/pkgs/by-name/no/note/package.nix +++ b/pkgs/by-name/no/note/package.nix @@ -9,8 +9,8 @@ buildGoModule { src = fetchFromGitHub { owner = "NewDawn0"; repo = "note"; - rev = "e1876e4c7aec769ea3b3296d7df25175ba899652"; - hash = "sha256-mdQjtXRxh5oCz0ThsnnsujcO97yu0K8TaX6jefOpR6g="; + rev = "v1.0.0"; + hash = "sha256-ISYagWOW5EnjtP4oOO9Dia0oPexlgvul/yllrHeZceQ="; }; vendorHash = "sha256-kzMvksDjhqKlHvBwl0spOApFKHKM7lm0WG2hifP6+Ro="; meta = { diff --git a/pkgs/by-name/sh/shredder/package.nix b/pkgs/by-name/sh/shredder/package.nix index 84ffd4ac8f0e5..54c5502e35297 100644 --- a/pkgs/by-name/sh/shredder/package.nix +++ b/pkgs/by-name/sh/shredder/package.nix @@ -9,8 +9,8 @@ buildGoModule { src = fetchFromGitHub { owner = "NewDawn0"; repo = "shredder"; - rev = "5b5dd3506e0917341105b57edd98851a69dd5935"; - hash = "sha256-T/IVEutcEnMkMHiM2KEp4d8UzA06xsYbeMvRnBj2Me8="; + rev = "v1.0.0"; + hash = "sha256-0Oz92/KABODmEqaQHHpeK9/tf7Ws+PdRrzQuTzxulQA="; }; vendorHash = null; meta = { diff --git a/pkgs/by-name/tr/translate/package.nix b/pkgs/by-name/tr/translate/package.nix index a2f78a8e71430..b2e73c1a3814c 100644 --- a/pkgs/by-name/tr/translate/package.nix +++ b/pkgs/by-name/tr/translate/package.nix @@ -12,10 +12,10 @@ rustPlatform.buildRustPackage { src = fetchFromGitHub { owner = "NewDawn0"; repo = "tl"; - rev = "2e104c44e7afeda9d310acbcad1abb6f2571179a"; - sha256 = "sha256-WFTB2cQxR8wvdwSzA1yLkEjahrjUWXcJy7tkpRjerBQ="; + rev = "v1.0.0"; + sha256 = "sha256-6oKz68UIRLRB7l5Am9+GNHswJKIrV/31dhkLRPC6dhE="; }; - cargoHash = "sha256-8XnIFAWMkpiCsEsg7FrRrqrLYzHVA38RmDYt9L6NfCk="; + cargoHash = "sha256-QEEqkcsJulZtMpVZXqy5D187nA+ksRya8ggPB9YWILU="; buildInputs = [ libiconv ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.SystemConfiguration; diff --git a/pkgs/by-name/vo/vocab/package.nix b/pkgs/by-name/vo/vocab/package.nix index 4f2a5bc0df39f..e881d9419c10c 100644 --- a/pkgs/by-name/vo/vocab/package.nix +++ b/pkgs/by-name/vo/vocab/package.nix @@ -12,8 +12,8 @@ python3Packages.buildPythonPackage { src = fetchFromGitHub { owner = "NewDawn0"; repo = "vocab"; - rev = "e1c11d2570b5f9e8d1a18652391cb6ab7623c574"; - hash = "sha256-3aPc+ivec8M+iD8ZDL+rWJrL+2jVhmcp2Bdc9jxpi3Y="; + rev = "v1.0.0"; + hash = "sha256-M/eRS19Epn003UGGqF7mpGwm0l4cPWizbgYGZ9lxCE4="; }; meta = { description = "An efficient CLI-based tool for vocabulary learning";