Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchurl, 5 pkg-config, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "gnuclad"; 10 version = "0.2.4"; 11 12 src = fetchurl { 13 url = "https://launchpad.net/gnuclad/trunk/${lib.versions.majorMinor version}/+download/${pname}-${version}.tar.gz"; 14 sha256 = "0ka2kscpjff7gflsargv3r9fdaxhkf3nym9mfaln3pnq6q7fwdki"; 15 }; 16 17 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=catch-value"; 18 19 nativeBuildInputs = [ pkg-config ]; 20 21 meta = with lib; { 22 homepage = "https://launchpad.net/gnuclad"; 23 description = "Generating cladogram trees for the GNU/Linux distro timeline project"; 24 license = licenses.gpl3Plus; 25 maintainers = with maintainers; [ mog ]; 26 platforms = platforms.unix; 27 mainProgram = "gnuclad"; 28 }; 29}