From 095bce73ea057ac592871adf6910a4bcb6787806 Mon Sep 17 00:00:00 2001 From: Mutsuha Asada Date: Sun, 22 Sep 2024 22:20:07 +0900 Subject: [PATCH] smatch: modernize derivation - Removed `rec` - Removed `with lib;` --- .../tools/analysis/smatch/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/analysis/smatch/default.nix b/pkgs/development/tools/analysis/smatch/default.nix index ef5b3ab2d1d5..e6e92cc96041 100644 --- a/pkgs/development/tools/analysis/smatch/default.nix +++ b/pkgs/development/tools/analysis/smatch/default.nix @@ -9,10 +9,12 @@ , libllvm , libxml2 }: - -stdenv.mkDerivation rec { - pname = "smatch"; +let version = "1.73"; +in +stdenv.mkDerivation { + pname = "smatch"; + inherit version; src = fetchFromGitHub { owner = "error27"; @@ -33,11 +35,11 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=${placeholder "out"}" "CXX=${stdenv.cc.targetPrefix}c++" ]; - meta = with lib; { + meta = { description = "Semantic analysis tool for C"; homepage = "https://sparse.docs.kernel.org/"; - maintainers = [ ]; - license = licenses.gpl2Plus; - platforms = platforms.all; + maintainers = with lib.maintainers; [ momeemt ]; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.all; }; }