diff options
author | Peter Simons <simons@cryp.to> | 2011-07-24 09:57:06 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2011-07-24 09:57:06 +0000 |
commit | 7743596401707b249c044cda4bde38597931dfd7 (patch) | |
tree | 45a9284c8a938d591a40bac8190c7df16a18f067 /pkgs/tools/system/tree/default.nix | |
parent | e34c2e366ea268b969dfff4b6702ef5190836b2a (diff) | |
download | nixlib-7743596401707b249c044cda4bde38597931dfd7.tar nixlib-7743596401707b249c044cda4bde38597931dfd7.tar.gz nixlib-7743596401707b249c044cda4bde38597931dfd7.tar.bz2 nixlib-7743596401707b249c044cda4bde38597931dfd7.tar.lz nixlib-7743596401707b249c044cda4bde38597931dfd7.tar.xz nixlib-7743596401707b249c044cda4bde38597931dfd7.tar.zst nixlib-7743596401707b249c044cda4bde38597931dfd7.zip |
all-packages.nix: added the 'tree' utility
svn path=/nixpkgs/trunk/; revision=27916
Diffstat (limited to 'pkgs/tools/system/tree/default.nix')
-rw-r--r-- | pkgs/tools/system/tree/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/system/tree/default.nix b/pkgs/tools/system/tree/default.nix new file mode 100644 index 000000000000..77c075c89bba --- /dev/null +++ b/pkgs/tools/system/tree/default.nix @@ -0,0 +1,35 @@ +{stdenv, fetchurl}: + +let + version = "1.6.0"; +in +stdenv.mkDerivation { + name = "tree-${version}"; + + src = fetchurl { + url = "http://mama.indstate.edu/users/ice/tree/src/tree-${version}.tgz"; + sha256 = "4dc470a74880338b01da41701d8db90d0fb178877e526d385931a007d68d7591"; + }; + + configurePhase = '' + makeFlagsArray=( + prefix=$out + MANDIR=$out/share/man/man1 + ) + ''; + + meta = { + homepage = "http://mama.indstate.edu/users/ice/tree/"; + description = "command to produce a depth indented directory listing"; + license = "GPLv2"; + + longDescription = '' + Tree is a recursive directory listing command that produces a + depth indented listing of files, which is colorized ala dircolors if + the LS_COLORS environment variable is set and output is to tty. + ''; + + platforms = stdenv.lib.platforms.unix; + maintainers = [stdenv.lib.maintainers.simons]; + }; +} |