2013-07-03 22:50:37 +00:00
|
|
|
{ stdenv }:
|
|
|
|
|
2013-07-04 09:01:47 +00:00
|
|
|
# this tool only exists on darwin
|
|
|
|
assert stdenv.isDarwin;
|
|
|
|
|
2013-07-03 22:50:37 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-07-07 08:54:33 +00:00
|
|
|
name = "setfile";
|
2013-07-03 22:50:37 +00:00
|
|
|
|
|
|
|
src = "/usr/bin/SetFile";
|
|
|
|
|
|
|
|
unpackPhase = "true";
|
|
|
|
configurePhase = "true";
|
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
2013-07-07 08:54:33 +00:00
|
|
|
ln -s $src "$out/bin"
|
2013-07-03 22:50:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|