Author: raskin
Date: Sun Dec 5 18:37:47 2010
New Revision: 24981
URL: https://svn.nixos.org/websvn/nix/?rev=24981&sc=1
Log:
Missing Singular files
Added:
nixpkgs/trunk/pkgs/applications/science/math/singular/
nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix
Added: nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/science/math/singular/default.nix Sun Dec
5 18:37:47 2010 (r24981)
@@ -0,0 +1,55 @@
+...@{builderdefspackage
+ , gmp, bison, perl, autoconf, ncurses, readline
+ , coreutils
+ , ...}:
+builderDefsPackage
+(a :
+let
+ helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
+ [];
+
+ buildInputs = map (n: builtins.getAttr n x)
+ (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+ sourceInfo = rec {
+ baseName="Singular";
+ version="3-1-2";
+ revision="-1";
+ name="${baseName}-${version}${revision}";
+
url="http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/${version}/${name}.tar.gz";
+ hash="04f9i1xar0r7qrrbfki1h9rrmx5y2xg4w7rrvlbx05v2dy6s8djv";
+ };
+in
+rec {
+ src = a.fetchurl {
+ url = sourceInfo.url;
+ sha256 = sourceInfo.hash;
+ };
+
+ inherit (sourceInfo) name version;
+ inherit buildInputs;
+
+ /* doConfigure should be removed if not needed */
+ phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall"];
+ doFixPaths = a.fullDepEntry (''
+ find . -exec sed -e 's@/bin/r...@${a.coreutils}&@g' -i '{}' ';'
+ find . -exec sed -e 's@/bin/un...@${a.coreutils}&@g' -i '{}' ';'
+ '') ["minInit" "doUnpack"];
+
+ meta = {
+ description = "A CAS for polynomial computations";
+ maintainers = with a.lib.maintainers;
+ [
+ raskin
+ ];
+ platforms = with a.lib.platforms;
+ linux;
+ license = "GPLv3"; # Or GPLv2 at your option - but not GPLv4
+ homepage = "http://www.singular.uni-kl.de/index.php";
+ };
+ passthru = {
+ updateInfo = {
+ downloadPage =
"http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/";
+ };
+ };
+}) x
+
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits