Merge pull request #128682 from SuperSandro2000/SuperSandro2000-patch-1

smatch: cleanup

authored by Sandro and committed by GitHub 90a4ce39 75f4a085

+12 -13
+12 -13
pkgs/development/tools/analysis/smatch/default.nix
··· 1 1 { lib, stdenv, fetchgit, sqlite, pkg-config, perl 2 2 , buildllvmsparse ? true 3 3 , buildc2xml ? true 4 - , llvm ? null, libxml2 ? null 4 + , llvm, libxml2 5 5 }: 6 6 7 - assert buildllvmsparse -> llvm != null; 8 - assert buildc2xml -> libxml2 != null; 9 - 10 7 stdenv.mkDerivation { 11 - name = "smatch-20120924"; 8 + pname = "smatch"; 9 + version = "20120924"; 12 10 13 11 src = fetchgit { 14 12 url = "git://repo.or.cz/smatch.git"; ··· 17 15 }; 18 16 19 17 nativeBuildInputs = [ pkg-config ]; 20 - buildInputs = [sqlite perl] 18 + buildInputs = [ sqlite perl ] 21 19 ++ lib.optional buildllvmsparse llvm 22 20 ++ lib.optional buildc2xml libxml2; 23 21 24 - preBuild = 25 - '' sed -i Makefile \ 26 - -e "s|^PREFIX=.*|PREFIX = $out|g" 27 - ''; 22 + preBuild = '' 23 + sed -i Makefile \ 24 + -e "s|^PREFIX=.*|PREFIX = $out|g" 25 + ''; 28 26 29 - meta = { 27 + meta = with lib; { 30 28 description = "A semantic analysis tool for C"; 31 29 homepage = "http://smatch.sourceforge.net/"; 32 - license = lib.licenses.free; /* OSL, see http://www.opensource.org */ 33 - platforms = lib.platforms.linux; 30 + maintainers = with maintainers; []; 31 + license = licenses.free; /* OSL, see http://www.opensource.org */ 32 + platforms = platforms.linux; 34 33 }; 35 34 }