diff options
author | Jason "Don" O'Conal <lovek323@gmail.com> | 2013-07-04 08:50:37 +1000 |
---|---|---|
committer | Jason "Don" O'Conal <lovek323@gmail.com> | 2013-07-04 08:50:37 +1000 |
commit | c2901da1b829a51f6490a2d0927fd4d668e45311 (patch) | |
tree | 2facbc2ed0db674ee221240d59e468afac438b5f /pkgs/development/tools/misc | |
parent | 3babc55ae29fba3a6981a5722fa86186924aebfd (diff) | |
download | nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.tar nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.tar.gz nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.tar.bz2 nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.tar.lz nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.tar.xz nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.tar.zst nixpkgs-c2901da1b829a51f6490a2d0927fd4d668e45311.zip |
setFile: add expression
Diffstat (limited to 'pkgs/development/tools/misc')
-rw-r--r-- | pkgs/development/tools/misc/setFile/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/setFile/default.nix b/pkgs/development/tools/misc/setFile/default.nix new file mode 100644 index 00000000000..9f86184634f --- /dev/null +++ b/pkgs/development/tools/misc/setFile/default.nix @@ -0,0 +1,31 @@ +{ stdenv }: + +stdenv.mkDerivation { + name = "setFile"; + + src = "/usr/bin/SetFile"; + + unpackPhase = "true"; + configurePhase = "true"; + buildPhase = "true"; + + installPhase = '' + mkdir -p "$out/bin" + cp $src "$out/bin" + ''; + + meta = with stdenv.lib; { + description = "Set attributes of files and directories"; + homepage = "http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/setfile.1.html"; + maintainers = with maintainers; [ lovek323 ]; + platforms = platforms.darwin; + + longDescription = '' + SetFile is a tool to set the file attributes on files in an HFS+ + directory. It attempts to be similar to the setfile command in MPW. It can + apply rules to more than one file with the options apply- ing to all files + listed. + ''; + }; +} + |