forked from mirrors/nixpkgs
* Get rid of those annoying "not an attrSet" trace messages.
svn path=/nixpkgs/trunk/; revision=27141
This commit is contained in:
parent
2881931569
commit
b1e93d013c
|
@ -4,12 +4,10 @@
|
||||||
builderDefsPackage (a :
|
builderDefsPackage (a :
|
||||||
let
|
let
|
||||||
s = import ./src-for-default.nix;
|
s = import ./src-for-default.nix;
|
||||||
helperArgNames = [];
|
|
||||||
propagatedBuildInputs = with a; [
|
propagatedBuildInputs = with a; [
|
||||||
gmp mpfr
|
gmp mpfr
|
||||||
];
|
];
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = [ gmp libffi mpfr ];
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
src = a.fetchUrlFromSrcInfo s;
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
sha256 = "0c661rjasax4ykw77dgqj39jhb4qi48m0bhhdy42vd5a4rfdrcck";
|
sha256 = "0c661rjasax4ykw77dgqj39jhb4qi48m0bhhdy42vd5a4rfdrcck";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [libX11 zlib xproto mesa freeglut];
|
buildInputs = [ libX11 zlib xproto ]
|
||||||
|
++ stdenv.lib.optional (mesa != null) mesa
|
||||||
|
++ stdenv.lib.optional (freeglut != null) freeglut;
|
||||||
preConfigure = builderDefs.stringsWithDeps.fullDepEntry (''
|
preConfigure = builderDefs.stringsWithDeps.fullDepEntry (''
|
||||||
sed -e 's/math[.]h/cmath/' -i vector.cxx
|
sed -e 's/math[.]h/cmath/' -i vector.cxx
|
||||||
sed -e 's/games/bin/' -i Makefile.in
|
sed -e 's/games/bin/' -i Makefile.in
|
||||||
|
|
|
@ -1,32 +1,19 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, redland, pkgconfig, gmp }:
|
||||||
, redland, pkgconfig, gmp
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
s = import ./src-for-default.nix;
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchUrlFromSrcInfo s;
|
|
||||||
|
|
||||||
inherit (s) name;
|
stdenv.mkDerivation rec {
|
||||||
inherit buildInputs;
|
name = "redstore-0.4";
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
src = fetchurl {
|
||||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
url = "http://redstore.googlecode.com/files/${name}.tar.gz";
|
||||||
|
sha256 = "1fs54v0d0kkqaz9ajacabb8wifrglvg6kkhd5b0mxmnng352wpp7";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ gmp pkgconfig redland ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An HTTP interface to Redland RDF store";
|
description = "An HTTP interface to Redland RDF store";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||||
[
|
platforms = with stdenv.lib.platforms;
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux ++ freebsd ++ gnu;
|
linux ++ freebsd ++ gnu;
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
rec {
|
|
||||||
version="0.4";
|
|
||||||
name="redstore-0.4";
|
|
||||||
hash="1fs54v0d0kkqaz9ajacabb8wifrglvg6kkhd5b0mxmnng352wpp7";
|
|
||||||
url="http://redstore.googlecode.com/files/redstore-${version}.tar.gz";
|
|
||||||
advertisedUrl="http://redstore.googlecode.com/files/redstore-0.4.tar.gz";
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
downloadPage = "http://code.google.com/p/redstore/downloads/list";
|
|
||||||
baseName = "redstore";
|
|
||||||
choiceCommand = '' head -n 1 |
|
|
||||||
sed -re "s@[&].*@@; s@.*[?]name=(.*)@http://$(sed -re "s@.*/p/([^/]+)/.*@\\1@" <<< "$(getAttr downloadPage)").googlecode.com/files/\\1@" '';
|
|
||||||
}
|
|
Loading…
Reference in a new issue