mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
* Amazingly, sdf2 is still dependent on the non-standard `getopt' tool. So
getopt has been added. As part of the build of sdf2 we patch sdf2table to store the full path of getopt. This is so that packages that use sdf2 do not have to declare getopt as an input. svn path=/nixpkgs/trunk/; revision=347
This commit is contained in:
parent
4de36e3b50
commit
eb545b5142
8
pkgs/getopt/getopt-build.sh
Executable file
8
pkgs/getopt/getopt-build.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfz $src || exit 1
|
||||
cd getopt-* || exit 1
|
||||
make || exit 1
|
||||
make install prefix=$out || exit 1
|
14
pkgs/getopt/getopt.fix
Normal file
14
pkgs/getopt/getopt.fix
Normal file
@ -0,0 +1,14 @@
|
||||
Package(
|
||||
[ ("name", "getopt-1.1.3")
|
||||
|
||||
, ("build", Relative("getopt/getopt-build.sh"))
|
||||
|
||||
, ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
|
||||
[ ("url", "http://huizen.dds.nl/~frodol/getopt-1.1.3.tar.gz`")
|
||||
, ("md5", "7b7637dcb0ac531f1af29f4d6b018e86")
|
||||
]))
|
||||
|
||||
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
|
||||
]
|
||||
)
|
||||
|
@ -7,3 +7,10 @@ cd sdf2-* || exit 1
|
||||
./configure --prefix=$out --with-aterm=$aterm || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
|
||||
# Replace the call to getopt in sdf2table with an absolute path (so that the
|
||||
# users of sdf2table don't have to explicitly declare getopt as an input).
|
||||
sdf2table=$out/bin/sdf2table
|
||||
sed s^getopt^$getopt/bin/getopt^ < $sdf2table > $sdf2table.tmp || exit 1
|
||||
mv $sdf2table.tmp $sdf2table || exit 1
|
||||
chmod +x $sdf2table || exit 1
|
||||
|
@ -10,5 +10,6 @@ Package(
|
||||
|
||||
, ("stdenv", IncludeFix("stdenv/stdenv.fix"))
|
||||
, ("aterm", IncludeFix("aterm/aterm.fix"))
|
||||
, ("getopt", IncludeFix("getopt/getopt.fix"))
|
||||
]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user