nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = {
22 homepage = "https://launchpad.net/gnuclad";
23 description = "Generating cladogram trees for the GNU/Linux distro timeline project";
24 license = lib.licenses.gpl3Plus;
25 maintainers = with lib.maintainers; [ mog ];
26 platforms = lib.platforms.unix;
27 mainProgram = "gnuclad";
28 };
29}