Unverified Commit 095bce73 authored by Mutsuha Asada's avatar Mutsuha Asada
Browse files

smatch: modernize derivation

- Removed `rec`
- Removed `with lib;`
parent f88d5e23
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -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;
  };
}