1 { lib, stdenv, fetchFromGitHub, copyPkgconfigItems, makePkgconfigItem }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2019-05-17";
7 src = fetchFromGitHub {
10 rev = "8fbe139bf0071cbe0758d2f6690a546c69ff0053";
11 sha256 = "1jf5lkn67q136ppfacw3lsry369v7mdr1rhidzjpbz18jfy9zl9q";
14 nativeBuildInputs = [ copyPkgconfigItems ];
20 cflags = [ "-I\${includedir}" ];
22 includedir = "@includedir@";
24 inherit (meta) description;
29 # copyPkgconfigItems will substitute this in the pkg-config file
30 includedir = "${placeholder "out"}/include";
36 mkdir -p $out/include/symfpu
37 cp -r * $out/include/symfpu/
43 description = "A (concrete or symbolic) implementation of IEEE-754 / SMT-LIB floating-point";
44 homepage = "https://github.com/martin-cs/symfpu";
45 license = licenses.gpl3Only;
46 platforms = platforms.unix;
47 maintainers = with maintainers; [ shadaj ];