otool and setfile: cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, libXinerama, libSM, libXxf86vm, xf86vidmodeproto
|
||||
, gstreamer, gst_plugins_base, GConf, setFile
|
||||
, gstreamer, gst_plugins_base, GConf, setfile
|
||||
, withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? true,
|
||||
}:
|
||||
|
||||
@@ -22,7 +22,7 @@ stdenv.mkDerivation {
|
||||
[ gtk libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer
|
||||
gst_plugins_base GConf ]
|
||||
++ optional withMesa mesa
|
||||
++ optional stdenv.isDarwin setFile;
|
||||
++ optional stdenv.isDarwin setfile;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
@@ -45,7 +45,7 @@ stdenv.mkDerivation {
|
||||
" + optionalString stdenv.isDarwin ''
|
||||
substituteInPlace configure --replace \
|
||||
'ac_cv_prog_SETFILE="/Developer/Tools/SetFile"' \
|
||||
'ac_cv_prog_SETFILE="${setFile}/bin/SetFile"'
|
||||
'ac_cv_prog_SETFILE="${setfile}/bin/SetFile"'
|
||||
'';
|
||||
|
||||
postInstall = "
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
{ stdenv }:
|
||||
|
||||
# this tool only exists on darwin
|
||||
assert stdenv.isDarwin;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "otool";
|
||||
|
||||
src = "/usr/bin/otool";
|
||||
|
||||
unpackPhase = "true";
|
||||
configurePhase = "true";
|
||||
buildPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp /usr/bin/otool "$out/bin"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Object file displaying tool";
|
||||
homepage = https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/otool.1.html;
|
||||
maintainers = with maintainers; [ lovek323 ];
|
||||
platforms = platforms.darwin;
|
||||
|
||||
longDescription = ''
|
||||
The otool command displays specified parts of object files or libraries.
|
||||
If the, -m option is not used, the file arguments may be of the form
|
||||
libx.a(foo.o), to request information about only that object file and not
|
||||
the entire library.
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
{ stdenv }:
|
||||
|
||||
# this tool only exists on darwin
|
||||
assert stdenv.isDarwin;
|
||||
|
||||
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.
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user