From 7e404eb447c654390c3dd14f6cf23a5ee93d8fea Mon Sep 17 00:00:00 2001 From: ghpzin Date: Wed, 2 Apr 2025 17:44:24 +0300 Subject: [PATCH] zzuf: modernize - replace `rec` with `finalAttrs` - remove `with lib;` from `meta` - replace `rev` with `tag` in `src` - replace `sha256` with `hash` in `src` --- pkgs/by-name/zz/zzuf/package.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/zz/zzuf/package.nix b/pkgs/by-name/zz/zzuf/package.nix index 45980fdfd2e2..5721d714f29f 100644 --- a/pkgs/by-name/zz/zzuf/package.nix +++ b/pkgs/by-name/zz/zzuf/package.nix @@ -7,15 +7,15 @@ autoreconfHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "zzuf"; version = "0.15"; src = fetchFromGitHub { owner = "samhocevar"; repo = "zzuf"; - rev = "v${version}"; - sha256 = "0li1s11xf32dafxq1jbnc8c63313hy9ry09dja2rymk9mza4x2n9"; + tag = "v${finalAttrs.version}"; + hash = "sha256-yYpO1K9pVp+Fki0Bn5OHI4xhGGJ2yYC7U00M10PQIVI="; }; patches = [ @@ -34,11 +34,11 @@ stdenv.mkDerivation rec { autoreconfHook ]; - meta = with lib; { + meta = { description = "Transparent application input fuzzer"; homepage = "http://caca.zoy.org/wiki/zzuf"; - license = licenses.wtfpl; - platforms = platforms.linux; - maintainers = with maintainers; [ lihop ]; + license = lib.licenses.wtfpl; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ lihop ]; }; -} +})