diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-12-05 18:37:47 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-12-05 18:37:47 +0000 |
commit | 5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad (patch) | |
tree | 2db7baf67f58e49fc1579675e7f60aef6dba7ffc /pkgs/applications/science/math | |
parent | 242d04a69af03b8ade231d2f4f3dfa1451a71363 (diff) | |
download | nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.tar nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.tar.gz nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.tar.bz2 nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.tar.lz nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.tar.xz nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.tar.zst nixpkgs-5cb3f8b6594f743e13595e5bc3ab49d9ee14f7ad.zip |
Missing Singular files
svn path=/nixpkgs/trunk/; revision=24981
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r-- | pkgs/applications/science/math/singular/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/singular/default.nix b/pkgs/applications/science/math/singular/default.nix new file mode 100644 index 00000000000..884d202e98e --- /dev/null +++ b/pkgs/applications/science/math/singular/default.nix @@ -0,0 +1,55 @@ +x@{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/rm@${a.coreutils}&@g' -i '{}' ';' + find . -exec sed -e 's@/bin/uname@${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 + |