diff options
author | Armijn Hemel <armijn@gpl-violations.org> | 2006-08-06 19:57:12 +0000 |
---|---|---|
committer | Armijn Hemel <armijn@gpl-violations.org> | 2006-08-06 19:57:12 +0000 |
commit | 5d58712fe0809aec4ef06e575b9996b8ffbdf8ae (patch) | |
tree | 0ab4727134ff129ec4692c1db2ae10f0a52b425a /pkgs/os-specific | |
parent | 1b17f45ef52d2dbafde4438476ed5e4684f61580 (diff) |
add the MAKEDEV utility. This needs a wrapper with the right location of the configuration directory (default /etc/makdev.d) to work correctly on NixOS.
svn path=/nixpkgs/trunk/; revision=6057
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/MAKEDEV/MAKEDEV-install.patch | 22 | ||||
-rw-r--r-- | pkgs/os-specific/linux/MAKEDEV/builder.sh | 5 | ||||
-rw-r--r-- | pkgs/os-specific/linux/MAKEDEV/default.nix | 10 |
3 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/MAKEDEV/MAKEDEV-install.patch b/pkgs/os-specific/linux/MAKEDEV/MAKEDEV-install.patch new file mode 100644 index 0000000000000..2035fbf75bf8e --- /dev/null +++ b/pkgs/os-specific/linux/MAKEDEV/MAKEDEV-install.patch @@ -0,0 +1,22 @@ +diff -rc MAKEDEV-3.23/Makefile MAKEDEV-3.23.new/Makefile +*** MAKEDEV-3.23/Makefile 2006-01-27 02:56:12.000000000 +0100 +--- MAKEDEV-3.23.new/Makefile 2006-08-06 21:50:06.000000000 +0200 +*************** +*** 19,26 **** + + CONF_WITH_SUBDIR=$(patsubst %,makedev.d/%,$(CONF)) + +! DESTDIR= +! DESTDIRS=$(DESTDIR)${DESTDIR:+/} + devdir=/dev + makedevdir=/dev + sbindir=/usr/sbin +--- 19,26 ---- + + CONF_WITH_SUBDIR=$(patsubst %,makedev.d/%,$(CONF)) + +! DESTDIR=${out} +! DESTDIRS=${out} + devdir=/dev + makedevdir=/dev + sbindir=/usr/sbin diff --git a/pkgs/os-specific/linux/MAKEDEV/builder.sh b/pkgs/os-specific/linux/MAKEDEV/builder.sh new file mode 100644 index 0000000000000..50d114773240a --- /dev/null +++ b/pkgs/os-specific/linux/MAKEDEV/builder.sh @@ -0,0 +1,5 @@ +source $stdenv/setup + +export DESTDIR=$out + +genericBuild diff --git a/pkgs/os-specific/linux/MAKEDEV/default.nix b/pkgs/os-specific/linux/MAKEDEV/default.nix new file mode 100644 index 0000000000000..4d96d15fc8fa3 --- /dev/null +++ b/pkgs/os-specific/linux/MAKEDEV/default.nix @@ -0,0 +1,10 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "MAKEDEV-3.23.1"; + src = fetchurl { + url = http://losser.labs.cs.uu.nl/~armijn/.nix/MAKEDEV-3.23-1.tar.gz; + md5 = "554faf6cbc9a84e4bd58ccfa32d74e2f"; + }; + patches = [./MAKEDEV-install.patch]; +} |