Author: raskin
Date: Mon Nov 22 08:40:10 2010
New Revision: 24801
URL: https://svn.nixos.org/websvn/nix/?rev=24801&sc=1
Log:
Adding dd_rescue - this is not the same as GNU ddrescue which has not been
updated for a long time
Added:
nixpkgs/trunk/pkgs/tools/system/dd_rescue/
nixpkgs/trunk/pkgs/tools/system/dd_rescue/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/tools/system/dd_rescue/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/system/dd_rescue/default.nix Mon Nov 22
08:40:10 2010 (r24801)
@@ -0,0 +1,63 @@
+...@{builderdefspackage
+ , ...}:
+builderDefsPackage
+(a :
+let
+ helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
+ [];
+
+ buildInputs = map (n: builtins.getAttr n x)
+ (builtins.attrNames (builtins.removeAttrs x helperArgNames));
+ sourceInfo = rec {
+ baseName="dd_rescue";
+ version="1.22";
+ name="${baseName}-${version}";
+ url="http://www.garloff.de/kurt/linux/ddrescue/${name}.tar.gz";
+ hash="0n0vs4cn5csdcsmlndg3z36ws68zlckj17zrbm6wynrbs8iirclp";
+ };
+in
+rec {
+ src = a.fetchurl {
+ url = sourceInfo.url;
+ sha256 = sourceInfo.hash;
+ };
+ dd_rhelp_src = a.fetchurl {
+ url = "http://www.kalysto.org/pkg/dd_rhelp-0.1.2.tar.gz";
+ sha256 = "0fhzkflg1ygiaj5ha0bf594d76vlgjsfwlpcmwrbady9frxvlkvv";
+ };
+
+ inherit (sourceInfo) name version;
+ inherit buildInputs;
+
+ /* doConfigure should be removed if not needed */
+ phaseNames = ["doMakeInstall" "install_dd_rhelp" "fixPaths"];
+ makeFlags=[
+ ''prefix="$out"''
+ ''DESTDIR="$out"''
+ ''INSTASROOT=''
+ ];
+
+ fixPaths = a.doPatchShebangs ''$out/bin'';
+
+ install_dd_rhelp = a.fullDepEntry (''
+ ensureDir "$out/share/dd_rescue" "$out/bin"
+ tar xf "${dd_rhelp_src}" -C "$out/share/dd_rescue"
+ cp "$out/share/dd_rescue"/dd_rhelp*/dd_rhelp "$out/bin"
+ '') ["minInit" "defEnsureDir"];
+
+ meta = {
+ description = "A tool to copy data from a damaged block device";
+ maintainers = with a.lib.maintainers;
+ [
+ raskin
+ ];
+ platforms = with a.lib.platforms;
+ linux;
+ };
+ passthru = {
+ updateInfo = {
+ downloadPage = "http://www.garloff.de/kurt/linux/ddrescue/";
+ };
+ };
+}) x
+
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Nov 21 20:39:52
2010 (r24800)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Nov 22 08:40:10
2010 (r24801)
@@ -533,6 +533,8 @@
ddclient = callPackage ../tools/networking/ddclient { };
+ dd_rescue = callPackage ../tools/system/dd_rescue { };
+
ddrescue = callPackage ../tools/system/ddrescue { };
desktop_file_utils = callPackage ../tools/misc/desktop-file-utils { };
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits