ding-libs: Some cleanups

- Add version to the name so Nix knows about it
- glibc is an implicit buildInput, no need to add it
- The docs don't seem to get build anyway, don't try to build them &
  remove the doxygen build input
- Add meta.platforms
This commit is contained in:
Tuomas Tynkkynen 2017-02-10 19:17:55 +02:00
parent 6a48087bc3
commit 6bf0a984ef

View file

@ -1,26 +1,23 @@
{ stdenv, fetchurl, glibc, doxygen, check }:
{ stdenv, fetchurl, check }:
let
name = "ding-libs";
stdenv.mkDerivation rec {
name = "ding-libs-${version}";
version = "0.6.0";
in stdenv.mkDerivation {
inherit name;
inherit version;
src = fetchurl {
url = "https://fedorahosted.org/released/${name}/${name}-${version}.tar.gz";
url = "https://fedorahosted.org/released/ding-libs/ding-libs-${version}.tar.gz";
sha1 = "c8ec86cb93a26e013a13b12a7b0b3fbc1bca16c1";
};
enableParallelBuilding = true;
buildInputs = [ glibc doxygen check ];
buildInputs = [ check ];
buildFlags = "docs";
doCheck = true;
meta = {
description = "'D is not GLib' utility libraries";
homepage = https://fedorahosted.org/sssd/;
platforms = with stdenv.lib.platforms; linux;
maintainers = with stdenv.lib.maintainers; [ e-user ];
license = [ stdenv.lib.licenses.gpl3 stdenv.lib.licenses.lgpl3 ];
};