Simplify update metadata for DirectFB

This commit is contained in:
Michael Raskin 2015-01-22 13:13:00 +03:00
parent c6dfb67059
commit 9e7afd50fb
4 changed files with 12 additions and 18 deletions

View File

@ -2,12 +2,18 @@
, enableX11 ? true, xlibs , enableX11 ? true, xlibs
, enableSDL ? true, SDL }: , enableSDL ? true, SDL }:
let s = import ./src-for-default.nix; in let s =
rec {
version = "1.7.6";
name="directfb-${version}";
sha256 = "1qf94vgsbcwfa00x2aqd6795n6z43x4ghclmb4sa4bl4zfn2pws4";
url="http://directfb.org/downloads/Core/DirectFB-1.7/DirectFB-${version}.tar.gz";
}
; in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit (s) name; inherit (s) name;
src = fetchurl { src = fetchurl {
url = s.url; inherit (s) url sha256;
sha256 = s.hash;
}; };
nativeBuildInputs = [ perl ]; nativeBuildInputs = [ perl ];

View File

@ -0,0 +1,3 @@
url 'http://directfb.org/index.php?path=Main%2FDownloads'
version_link 'DirectFB-[0-9]'
minimize_overwrite

View File

@ -1,9 +0,0 @@
rec {
version="1.7.6";
name="directfb-${version}";
hash="1qf94vgsbcwfa00x2aqd6795n6z43x4ghclmb4sa4bl4zfn2pws4";
url="http://directfb.org/downloads/Core/DirectFB-1.7/DirectFB-${version}.tar.gz";
advertisedUrl="http://directfb.org/downloads/Core/DirectFB-1.7/DirectFB-1.7.6.tar.gz";
}

View File

@ -1,6 +0,0 @@
{
baseName = "directfb";
downloadPage = "http://directfb.org/index.php?path=Main%2FDownloads";
sourceRegexp = ''DirectFB-.*[.]tar[.].*'';
choiceCommand = ''tail -1'';
}