depot/third_party/nixpkgs/pkgs/development/tools/analysis/sparse/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
720 B
Nix

{ fetchurl, stdenv, pkgconfig, libxml2, llvm }:
stdenv.mkDerivation rec {
name = "sparse-0.5.0";
src = fetchurl {
url = "mirror://kernel/software/devel/sparse/dist/${name}.tar.xz";
sha256 = "1mc86jc5xdrdmv17nqj2cam2yqygnj6ar1iqkwsx2y37ij8wy7wj";
};
preConfigure = ''
sed -i Makefile -e "s|^PREFIX=.*$|PREFIX=$out|g"
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 llvm ];
doCheck = true;
meta = {
description = "Semantic parser for C";
homepage = "https://git.kernel.org/cgit/devel/sparse/sparse.git/";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}