darwin os-specific: rez and derez packages

authored by Daiderd Jordan and committed by Rok Garbas f1195081 099923c7

+71
+1
lib/maintainers.nix
··· 133 lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>"; 134 linquize = "Linquize <linquize@yahoo.com.hk>"; 135 linus = "Linus Arver <linusarver@gmail.com>"; 136 lovek323 = "Jason O'Conal <jason@oconal.id.au>"; 137 ludo = "Ludovic Courtès <ludo@gnu.org>"; 138 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
··· 133 lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>"; 134 linquize = "Linquize <linquize@yahoo.com.hk>"; 135 linus = "Linus Arver <linusarver@gmail.com>"; 136 + lnl7 = "Daiderd Jordan <daiderd@gmail.com>"; 137 lovek323 = "Jason O'Conal <jason@oconal.id.au>"; 138 ludo = "Ludovic Courtès <ludo@gnu.org>"; 139 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
+34
pkgs/os-specific/darwin/derez/default.nix
···
··· 1 + { stdenv }: 2 + 3 + # this tool only exists on darwin 4 + assert stdenv.isDarwin; 5 + 6 + stdenv.mkDerivation { 7 + name = "derez"; 8 + 9 + src = "/usr/bin/DeRez"; 10 + 11 + unpackPhase = "true"; 12 + configurePhase = "true"; 13 + buildPhase = "true"; 14 + 15 + installPhase = '' 16 + mkdir -p "$out/bin" 17 + ln -s $src "$out/bin" 18 + ''; 19 + 20 + meta = with stdenv.lib; { 21 + description = "Decompiles resources"; 22 + homepage = "https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/DeRez.1.html"; 23 + maintainers = [ maintainers.lnl7 ]; 24 + platforms = platforms.darwin; 25 + 26 + longDescription = '' 27 + The DeRez tool decompiles the resource fork of resourceFile according to the type declarations 28 + supplied by the type declaration files. The resource description produced by this decompilation 29 + contains the resource definitions (resource and data statements) associated with these type 30 + declarations. If for some reason it cannot reproduce the appropriate resource statements, DeRez 31 + generates hexadecimal data statements instead. 32 + ''; 33 + }; 34 + }
+33
pkgs/os-specific/darwin/rez/default.nix
···
··· 1 + { stdenv }: 2 + 3 + # this tool only exists on darwin 4 + assert stdenv.isDarwin; 5 + 6 + stdenv.mkDerivation { 7 + name = "rez"; 8 + 9 + src = "/usr/bin/Rez"; 10 + 11 + unpackPhase = "true"; 12 + configurePhase = "true"; 13 + buildPhase = "true"; 14 + 15 + installPhase = '' 16 + mkdir -p "$out/bin" 17 + ln -s $src "$out/bin" 18 + ''; 19 + 20 + meta = with stdenv.lib; { 21 + description = "Compiles resources"; 22 + homepage = "https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/Rez.1.html"; 23 + maintainers = [ maintainers.lnl7 ]; 24 + platforms = platforms.darwin; 25 + 26 + longDescription = '' 27 + The Rez tool compiles the resource fork of a file according to the textual description contained in 28 + the resource description files. These resource description files must contain both the type 29 + declarations and the resource definitions needed to compile the resources. This data can come 30 + directly from the resource description files. 31 + ''; 32 + }; 33 + }
+3
pkgs/top-level/all-packages.nix
··· 635 636 oracle-instantclient = callPackage ../development/libraries/oracle-instantclient { }; 637 638 setfile = callPackage ../os-specific/darwin/setfile { }; 639 640 install_name_tool = callPackage ../os-specific/darwin/install_name_tool { };
··· 635 636 oracle-instantclient = callPackage ../development/libraries/oracle-instantclient { }; 637 638 + derez = callPackage ../os-specific/darwin/derez { }; 639 + rez = callPackage ../os-specific/darwin/rez { }; 640 + 641 setfile = callPackage ../os-specific/darwin/setfile { }; 642 643 install_name_tool = callPackage ../os-specific/darwin/install_name_tool { };