From bbd6e56d69590618dad0a9c320711b959838857a Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 23 Nov 2009 12:21:34 +0000 Subject: [PATCH] Fix the cleanup-induced problems svn path=/nixpkgs/trunk/; revision=18554 --- pkgs/development/python-modules/flup/default.nix | 4 +++- pkgs/os-specific/linux/kqemu/1.4.0pre1.nix | 12 +++++++----- pkgs/tools/networking/socat/2.0.0-b3.nix | 4 ++++ pkgs/tools/security/bmrsa/11.nix | 2 +- pkgs/top-level/all-packages.nix | 10 +++++++--- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/flup/default.nix b/pkgs/development/python-modules/flup/default.nix index be9fd84d1fd9..25954dfa9da5 100644 --- a/pkgs/development/python-modules/flup/default.nix +++ b/pkgs/development/python-modules/flup/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, python, setuptools }: +{ stdenv, fetchurl, python, setuptools, ... }: stdenv.mkDerivation rec { name = "flup-r2311"; @@ -10,6 +10,8 @@ stdenv.mkDerivation rec { buildInputs = [ python setuptools ]; + phaseNames = ["addInputs" "createPythonInstallationTarget" "installPythonPackage"]; + meta = { description = "FastCGI Python module set"; }; diff --git a/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix b/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix index ba5cf2e1d0f0..a24e65b378f3 100644 --- a/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix +++ b/pkgs/os-specific/linux/kqemu/1.4.0pre1.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, kernel, perl }: +{ stdenv, fetchurl, kernel, perl, fullDepEntry, ... }: stdenv.mkDerivation rec { name = "kqemu-1.4.0pre1"; @@ -10,17 +10,19 @@ stdenv.mkDerivation rec { buildInputs = [perl]; - configureFlags = [''--PREFIx=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)'']; + configureFlags = [''--PREFIX=$out'' ''--kernel-path=$(ls -d ${kernel}/lib/modules/*/build)'']; - preConfigure = '' + preConfigure = fullDepEntry ('' sed -e '/#include/i#include ' -i kqemu-linux.c - sed -e 's/memset/mymemset/g; s/memcpy/mymemcpy/g; s/void [*]my/static void *my/g' -i common/kern + sed -e 's/memset/mymemset/g; s/memcpy/mymemcpy/g; s/void [*]my/static void *my/g' -i common/kernel.c sed -e 's/`uname -r`/'"$(basename ${kernel}/lib/modules/*)"'/' -i install.sh sed -e '/kernel_path=/akernel_path=$out$kernel_path' -i install.sh sed -e '/depmod/d' -i install.sh cat install.sh - ''; # */ + '') ["minInit" "doUnpack"]; + + phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"]; meta = { description = "Kernel module for Qemu acceleration"; diff --git a/pkgs/tools/networking/socat/2.0.0-b3.nix b/pkgs/tools/networking/socat/2.0.0-b3.nix index 098a2d241df0..6567e5dfcc40 100644 --- a/pkgs/tools/networking/socat/2.0.0-b3.nix +++ b/pkgs/tools/networking/socat/2.0.0-b3.nix @@ -1,4 +1,8 @@ args : with args; +let + version = "2.0.0-b3"; + patches = []; +in rec { src = /* Here a fetchurl expression goes */ fetchurl { diff --git a/pkgs/tools/security/bmrsa/11.nix b/pkgs/tools/security/bmrsa/11.nix index 216cf1c17d8f..0a830e75d804 100644 --- a/pkgs/tools/security/bmrsa/11.nix +++ b/pkgs/tools/security/bmrsa/11.nix @@ -4,7 +4,7 @@ let fetchurl = args.fetchurl; fullDepEntry = args.fullDepEntry; - version = lib.attrByPath ["version"] "" args; + version = "11"; buildInputs = with args; [ unzip ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9cf18609228d..099332e09c12 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1375,6 +1375,10 @@ let inherit fetchurl stdenv openssl; }; + socat2pre = builderDefsPackage ../tools/networking/socat/2.0.0-b3.nix { + inherit fetchurl stdenv openssl; + }; + sudo = import ../tools/security/sudo { inherit fetchurl stdenv coreutils pam groff; }; @@ -4710,7 +4714,7 @@ let inherit fetchurl stdenv python db4; }; - flup = import ../development/python-modules/flup { + flup = builderDefsPackage ../development/python-modules/flup { inherit fetchurl stdenv; python = python25; setuptools = setuptools.passthru.function {python = python25;}; @@ -5518,8 +5522,8 @@ let inherit fetchurl stdenv kernel ncurses fxload; }; - kqemu = import ../os-specific/linux/kqemu/1.4.0pre1.nix { - inherit fetchurl stdenv kernel perl; + kqemu = builderDefsPackage ../os-specific/linux/kqemu/1.4.0pre1.nix { + inherit kernel perl; }; splashutils =