From 9813c8feb6dfe263866f3d84d9176ecdff63dde2 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 23 Nov 2010 07:52:57 +0000 Subject: Adding untie - a tool for manipulating namespaces svn path=/nixpkgs/trunk/; revision=24819 --- pkgs/os-specific/linux/untie/default.nix | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/os-specific/linux/untie/default.nix (limited to 'pkgs/os-specific/linux/untie/default.nix') diff --git a/pkgs/os-specific/linux/untie/default.nix b/pkgs/os-specific/linux/untie/default.nix new file mode 100644 index 00000000000..441f041e6be --- /dev/null +++ b/pkgs/os-specific/linux/untie/default.nix @@ -0,0 +1,46 @@ +x@{builderDefsPackage + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="untie"; + version="0.3"; + name="${baseName}-${version}"; + url="http://guichaz.free.fr/${baseName}/files/${name}.tar.bz2"; + hash="154c3550af3d3513022a15381bbc2693f5dd7789bf0a4320635991b8f6b3648c"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + phaseNames = ["doMakeInstall"]; + makeFlags=["PREFIX=$out"]; + + meta = { + description = "A tool to run processes untied from some of the namespaces"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://guichaz.free.fr/untie"; + }; + }; +}) x + -- cgit 1.4.1