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
This commit is contained in:
parent
1b17f45ef5
commit
5d58712fe0
22
pkgs/os-specific/linux/MAKEDEV/MAKEDEV-install.patch
Normal file
22
pkgs/os-specific/linux/MAKEDEV/MAKEDEV-install.patch
Normal file
@ -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
|
5
pkgs/os-specific/linux/MAKEDEV/builder.sh
Normal file
5
pkgs/os-specific/linux/MAKEDEV/builder.sh
Normal file
@ -0,0 +1,5 @@
|
||||
source $stdenv/setup
|
||||
|
||||
export DESTDIR=$out
|
||||
|
||||
genericBuild
|
10
pkgs/os-specific/linux/MAKEDEV/default.nix
Normal file
10
pkgs/os-specific/linux/MAKEDEV/default.nix
Normal file
@ -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];
|
||||
}
|
Loading…
Reference in New Issue
Block a user