mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
Simplify update metadata for DirectFB
This commit is contained in:
parent
c6dfb67059
commit
9e7afd50fb
@ -2,12 +2,18 @@
|
||||
, enableX11 ? true, xlibs
|
||||
, 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 {
|
||||
inherit (s) name;
|
||||
src = fetchurl {
|
||||
url = s.url;
|
||||
sha256 = s.hash;
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
3
pkgs/development/libraries/directfb/default.upstream
Normal file
3
pkgs/development/libraries/directfb/default.upstream
Normal file
@ -0,0 +1,3 @@
|
||||
url 'http://directfb.org/index.php?path=Main%2FDownloads'
|
||||
version_link 'DirectFB-[0-9]'
|
||||
minimize_overwrite
|
@ -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";
|
||||
|
||||
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
baseName = "directfb";
|
||||
downloadPage = "http://directfb.org/index.php?path=Main%2FDownloads";
|
||||
sourceRegexp = ''DirectFB-.*[.]tar[.].*'';
|
||||
choiceCommand = ''tail -1'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user