diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-08-20 21:53:43 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-08-20 21:53:43 +0000 |
commit | b147842dce82b2e988a64f7fe4ae117cbc6bbec5 (patch) | |
tree | c966443f4a250cbde97c4a8af55bf64742763fe6 /pkgs/tools/filesystems/nilfs-utils | |
parent | 202cd08724cffd79b9b6d08bf2fe150d86fe2876 (diff) | |
download | nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.tar nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.tar.gz nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.tar.bz2 nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.tar.lz nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.tar.xz nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.tar.zst nixpkgs-b147842dce82b2e988a64f7fe4ae117cbc6bbec5.zip |
Add nilfs-utils
svn path=/nixpkgs/trunk/; revision=23296
Diffstat (limited to 'pkgs/tools/filesystems/nilfs-utils')
-rw-r--r-- | pkgs/tools/filesystems/nilfs-utils/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/nilfs-utils/default.nix b/pkgs/tools/filesystems/nilfs-utils/default.nix new file mode 100644 index 00000000000..b702003fada --- /dev/null +++ b/pkgs/tools/filesystems/nilfs-utils/default.nix @@ -0,0 +1,51 @@ +x@{builderDefsPackage + , libuuid + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + []; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + version = "2.0.19"; + url = "http://www.nilfs.org/download/nilfs-utils-${version}.tar.bz2"; + hash = "0q9cb6ny0ah1s9rz1rgqka1pxdm3xvg0ywcqyhzcz4yhamfhg100"; + baseName = "nilfs-utils"; + name = "${baseName}-${version}"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doFixPaths" "doConfigure" "doMakeInstall"]; + + doFixPaths = a.fullDepEntry ('' + sed -e '/sysconfdir=\/etc/d; /sbindir=\/sbin/d' -i configure + '') ["doUnpack" "minInit"]; + + meta = { + description = "NILFS utilities"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + }; + passthru = { + updateInfo = { + downloadPage = "http://www.nilfs.org/download/?C=M;O=D"; + }; + }; +}) x + |