diff --git a/pkgs/development/libraries/directfb/default.nix b/pkgs/development/libraries/directfb/default.nix index 6326efe1adb8..54fb0aa49321 100644 --- a/pkgs/development/libraries/directfb/default.nix +++ b/pkgs/development/libraries/directfb/default.nix @@ -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 ]; diff --git a/pkgs/development/libraries/directfb/default.upstream b/pkgs/development/libraries/directfb/default.upstream new file mode 100644 index 000000000000..ef4ed8e490d1 --- /dev/null +++ b/pkgs/development/libraries/directfb/default.upstream @@ -0,0 +1,3 @@ +url 'http://directfb.org/index.php?path=Main%2FDownloads' +version_link 'DirectFB-[0-9]' +minimize_overwrite diff --git a/pkgs/development/libraries/directfb/src-for-default.nix b/pkgs/development/libraries/directfb/src-for-default.nix deleted file mode 100644 index ed03b758b756..000000000000 --- a/pkgs/development/libraries/directfb/src-for-default.nix +++ /dev/null @@ -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"; - - -} diff --git a/pkgs/development/libraries/directfb/src-info-for-default.nix b/pkgs/development/libraries/directfb/src-info-for-default.nix deleted file mode 100644 index f8c0f0d1f9b1..000000000000 --- a/pkgs/development/libraries/directfb/src-info-for-default.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - baseName = "directfb"; - downloadPage = "http://directfb.org/index.php?path=Main%2FDownloads"; - sourceRegexp = ''DirectFB-.*[.]tar[.].*''; - choiceCommand = ''tail -1''; -}