From 2766a4b44ee6eafae03a042801270c7f6b8ed32a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Mar 2003 16:43:14 +0000 Subject: [PATCH] * Improved Nix. Resources (package descriptors and other source files) are now referenced using their cryptographic hashes. This ensures that if two package descriptors have the same contents, then they describe the same package. This property is not as trivial as it sounds: generally import relations cause this property not to hold w.r.t. temporality. But since imports also use hashes to reference other packages, equality follows by induction. svn path=/nix/trunk/pkg/; revision=5 --- pkg/aterm-2.0-build.sh | 13 +++++++++++++ pkg/aterm-2.0.nix | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100755 pkg/aterm-2.0-build.sh create mode 100644 pkg/aterm-2.0.nix diff --git a/pkg/aterm-2.0-build.sh b/pkg/aterm-2.0-build.sh new file mode 100755 index 00000000000..5d65b7878c1 --- /dev/null +++ b/pkg/aterm-2.0-build.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +export PATH=$utils/bin +export LIBRARY_PATH=$glibc/lib +export CC=$gcc/bin/gcc +export CFLAGS="-isystem $glibc/include -isystem $kernel/include" + +top=`pwd` +tar xvfz $src +cd aterm-2.0 +./configure --prefix=$top +make +make install diff --git a/pkg/aterm-2.0.nix b/pkg/aterm-2.0.nix new file mode 100644 index 00000000000..2484001bef6 --- /dev/null +++ b/pkg/aterm-2.0.nix @@ -0,0 +1,11 @@ +# Dependencies. +utils <- 5703121fe19cbeeaee7edd659cf4a25b # prog-bootstrap +gcc <- 02212b3dc4e50349376975367d433929 # gcc-bootstrap +glibc <- c0ce03ee0bab298babbe7e3b6159d36c # glibc-bootstrap +kernel <- 3dc8333a2c2b4d627b892755417acf89 # kernel-bootstrap + +# Original sources. +src = 853474e4bcf4a85f7d38a0676b36bded # aterm-2.0.tar.gz + +# Build script. +build = ee7ae4ade69f846d2385871bf532ef7e # aterm-2.0-build.sh