depot/third_party/nixpkgs/pkgs/development/tools/analysis/sparse/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

26 lines
706 B
Nix

{ fetchurl, lib, stdenv, pkg-config, 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 = [ pkg-config ];
buildInputs = [ libxml2 llvm ];
doCheck = true;
meta = {
description = "Semantic parser for C";
homepage = "https://git.kernel.org/cgit/devel/sparse/sparse.git/";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}