mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
* Added the UML utilities (in particular for tunctl). mconsole is
not built since it requires readline, which we don't have right now. svn path=/nixpkgs/trunk/; revision=804
This commit is contained in:
parent
428f8b4ca3
commit
cd0e06b9ef
3 changed files with 31 additions and 0 deletions
15
pkgs/misc/uml-utilities/builder.sh
Executable file
15
pkgs/misc/uml-utilities/builder.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#! /bin/sh -e
|
||||||
|
|
||||||
|
buildinputs=""
|
||||||
|
. $stdenv/setup
|
||||||
|
|
||||||
|
tar xvfj $src
|
||||||
|
cd tools
|
||||||
|
sed s/mconsole// < Makefile > tmp
|
||||||
|
mv tmp Makefile
|
||||||
|
mkdir $out
|
||||||
|
mkdir $out/bin
|
||||||
|
mkdir $out/lib
|
||||||
|
mkdir $out/lib/uml
|
||||||
|
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml
|
||||||
|
make BIN_DIR=$out/bin LIB_DIR=$out/lib/uml install
|
12
pkgs/misc/uml-utilities/default.nix
Normal file
12
pkgs/misc/uml-utilities/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
derivation {
|
||||||
|
name = "uml-utilities-20040114";
|
||||||
|
system = stdenv.system;
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://unc.dl.sourceforge.net/sourceforge/user-mode-linux/uml_utilities_20040114.tar.bz2;
|
||||||
|
md5 = "1fd5b791ef32c6a3ed4ae42c4a53a316";
|
||||||
|
};
|
||||||
|
inherit stdenv;
|
||||||
|
}
|
|
@ -665,6 +665,10 @@
|
||||||
patch = gnupatch;
|
patch = gnupatch;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
umlutilities = (import ../misc/uml-utilities) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
};
|
||||||
|
|
||||||
nix = (import ../misc/nix) {
|
nix = (import ../misc/nix) {
|
||||||
inherit fetchurl stdenv aterm;
|
inherit fetchurl stdenv aterm;
|
||||||
aterm = aterm_2_0_5;
|
aterm = aterm_2_0_5;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue