···11+{ stdenv }:
22+33+# this tool only exists on darwin
44+assert stdenv.isDarwin;
55+66+stdenv.mkDerivation {
77+ name = "derez";
88+99+ src = "/usr/bin/DeRez";
1010+1111+ unpackPhase = "true";
1212+ configurePhase = "true";
1313+ buildPhase = "true";
1414+1515+ installPhase = ''
1616+ mkdir -p "$out/bin"
1717+ ln -s $src "$out/bin"
1818+ '';
1919+2020+ meta = with stdenv.lib; {
2121+ description = "Decompiles resources";
2222+ homepage = "https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/DeRez.1.html";
2323+ maintainers = [ maintainers.lnl7 ];
2424+ platforms = platforms.darwin;
2525+2626+ longDescription = ''
2727+ The DeRez tool decompiles the resource fork of resourceFile according to the type declarations
2828+ supplied by the type declaration files. The resource description produced by this decompilation
2929+ contains the resource definitions (resource and data statements) associated with these type
3030+ declarations. If for some reason it cannot reproduce the appropriate resource statements, DeRez
3131+ generates hexadecimal data statements instead.
3232+ '';
3333+ };
3434+}
+33
pkgs/os-specific/darwin/rez/default.nix
···11+{ stdenv }:
22+33+# this tool only exists on darwin
44+assert stdenv.isDarwin;
55+66+stdenv.mkDerivation {
77+ name = "rez";
88+99+ src = "/usr/bin/Rez";
1010+1111+ unpackPhase = "true";
1212+ configurePhase = "true";
1313+ buildPhase = "true";
1414+1515+ installPhase = ''
1616+ mkdir -p "$out/bin"
1717+ ln -s $src "$out/bin"
1818+ '';
1919+2020+ meta = with stdenv.lib; {
2121+ description = "Compiles resources";
2222+ homepage = "https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/Rez.1.html";
2323+ maintainers = [ maintainers.lnl7 ];
2424+ platforms = platforms.darwin;
2525+2626+ longDescription = ''
2727+ The Rez tool compiles the resource fork of a file according to the textual description contained in
2828+ the resource description files. These resource description files must contain both the type
2929+ declarations and the resource definitions needed to compile the resources. This data can come
3030+ directly from the resource description files.
3131+ '';
3232+ };
3333+}