summary refs log tree commit diff
path: root/pkgs/tools/filesystems/nilfs-utils/default.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-11-04 01:25:01 +0300
committerMichael Raskin <7c6f434c@mail.ru>2014-11-04 12:04:42 +0300
commit5854eb09eb3a0d00a51af506c46fa92949eacfb3 (patch)
treee1316ddce37b5007fb5fc61b1236362ad241b78b /pkgs/tools/filesystems/nilfs-utils/default.nix
parent4380b5e3577fe5874be8c0afadb557d0822c310c (diff)
downloadnixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.tar
nixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.tar.gz
nixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.tar.bz2
nixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.tar.lz
nixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.tar.xz
nixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.tar.zst
nixpkgs-5854eb09eb3a0d00a51af506c46fa92949eacfb3.zip
Update NILFS2 utils
Diffstat (limited to 'pkgs/tools/filesystems/nilfs-utils/default.nix')
-rw-r--r--pkgs/tools/filesystems/nilfs-utils/default.nix50
1 files changed, 18 insertions, 32 deletions
diff --git a/pkgs/tools/filesystems/nilfs-utils/default.nix b/pkgs/tools/filesystems/nilfs-utils/default.nix
index db1b3fcf44e..93f15675bd7 100644
--- a/pkgs/tools/filesystems/nilfs-utils/default.nix
+++ b/pkgs/tools/filesystems/nilfs-utils/default.nix
@@ -1,52 +1,38 @@
-x@{builderDefsPackage
-  , libuuid
-  , ...}:
-builderDefsPackage
-(a :  
+{ stdenv, fetchurl, libuuid, libselinux }:
 let 
-  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
-    [];
-
-  buildInputs = map (n: builtins.getAttr n x)
-    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
   sourceInfo = rec {
-    version = "2.0.19";
+    version = "2.2.2";
     url = "http://www.nilfs.org/download/nilfs-utils-${version}.tar.bz2";
-    hash = "0q9cb6ny0ah1s9rz1rgqka1pxdm3xvg0ywcqyhzcz4yhamfhg100";
+    sha256 = "1w2i5wy290y03hg72lhkrnmfhap04ki0kkv5m8q60a2frbv6ydql";
     baseName = "nilfs-utils";
     name = "${baseName}-${version}";
   };
 in
-rec {
-  src = a.fetchurl {
+stdenv.mkDerivation rec {
+  src = fetchurl {
     url = sourceInfo.url;
-    sha256 = sourceInfo.hash;
+    sha256 = sourceInfo.sha256;
   };
 
   inherit (sourceInfo) name version;
-  inherit buildInputs;
-
-  /* doConfigure should be removed if not needed */
-  phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall"];
+  buildInputs = [libuuid libselinux];
 
-  doFixPaths = a.fullDepEntry (''
-    sed -e '/sysconfdir=\/etc/d; /sbindir=\/sbin/d' -i configure
-    sed -e 's@/sbin/@'"$out"'/sbin/@' -i ./sbin/mount/cleaner_ctl.c
-  '') ["doUnpack" "minInit"];
+  preConfigure = ''
+    sed -e '/sysconfdir=\/etc/d; ' -i configure
+    sed -e "s@sbindir=/sbin@sbindir=$out/sbin@" -i configure
+    sed -e 's@/sbin/@'"$out"'/sbin/@' -i ./lib/cleaner*.c
+  '';
 
   meta = {
     description = "NILFS utilities";
-    maintainers = with a.lib.maintainers;
+    maintainers = with stdenv.lib.maintainers;
     [
       raskin
     ];
-    platforms = with a.lib.platforms;
+    platforms = with stdenv.lib.platforms;
       linux;
+    downloadPage = "http://nilfs.sourceforge.net/en/download.html";
+    updateWalker = true;
+    inherit version;
   };
-  passthru = {
-    updateInfo = {
-      downloadPage = "http://www.nilfs.org/download/?C=M;O=D";
-    };
-  };
-}) x
-
+}