smatch: modernize derivation

- Removed `rec`
- Removed `with lib;`
This commit is contained in:
Mutsuha Asada
2024-09-22 22:20:07 +09:00
parent f88d5e23d9
commit 095bce73ea
@@ -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;
};
}