Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchFromGitHub, cmake, bpp-core }: 2 3stdenv.mkDerivation rec { 4 pname = "bpp-seq"; 5 6 inherit (bpp-core) version; 7 8 src = fetchFromGitHub { 9 owner = "BioPP"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "1mc09g8jswzsa4wgrfv59jxn15ys3q8s0227p1j838wkphlwn2qk"; 13 }; 14 15 nativeBuildInputs = [ cmake ]; 16 buildInputs = [ bpp-core ]; 17 18 postFixup = '' 19 substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake \ 20 --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX' 21 ''; 22 # prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES 23 # of form /nix/store/.../nix/store/.../include, 24 # probably due to relative vs absolute path issue 25 26 doCheck = !stdenv.isDarwin; 27 28 meta = bpp-core.meta // { 29 changelog = "https://github.com/BioPP/bpp-seq/blob/master/ChangeLog"; 30 }; 31}