fixed download urls after kernel-depending packages had their names changed

svn path=/nixpkgs/trunk/; revision=32484
This commit is contained in:
Peter Simons 2012-02-22 20:29:22 +00:00
parent 9db6840814
commit 846a12f954
2 changed files with 8 additions and 6 deletions

View File

@ -1,9 +1,8 @@
{ stdenv, fetchurl, kernel }:
let
version = "0.4.1";
name = "bbswitch-${version}-${kernel.version}";
baseName = "bbswitch-0.4.1";
name = "${baseName}-${kernel.version}";
in
@ -11,7 +10,7 @@ stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "http://github.com/downloads/Bumblebee-Project/bbswitch/${name}.tar.gz";
url = "http://github.com/downloads/Bumblebee-Project/bbswitch/${baseName}.tar.gz";
sha256 = "d579c6efc5f6482f0cf0b2c1b1f1a127413218cdffdc8f2d5a946c11909bda23";
};

View File

@ -1,10 +1,13 @@
{ stdenv, fetchurl, kernel }:
let baseName = "frandom-1.1";
in
stdenv.mkDerivation rec {
name = "frandom-1.1-${kernel.version}";
name = "${baseName}-${kernel.version}";
src = fetchurl {
url = "http://sourceforge.net/projects/frandom/files/${name}.tar.gz";
url = "http://sourceforge.net/projects/frandom/files/${baseName}.tar.gz";
sha256 = "15rgyk4hfawqg7z1spk2xlk1nn6rcdls8gdhc70f91shrc9pvlls";
};