git.iko.soy/typeable/nixpkgs
on master help sign in
darwin os-specific: rez and derez packages
commitf1195081403ff72edb33565d3669251addd41f86 authorDaiderd Jordan <daiderd@gmail.com> dateWed 17 Jun 2015, 15:21 (11 years ago) parent099923c
4 files changed+71
lib/maintainers.nix+1 pkgs/os-specific/darwin/derez/default.nix+34 pkgs/os-specific/darwin/rez/default.nix+33 pkgs/top-level/all-packages.nix+3
lib/maintainers.nix+1
@@ -133,6 +133,7 @@
133133 lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>";
134134 linquize = "Linquize <linquize@yahoo.com.hk>";
135135 linus = "Linus Arver <linusarver@gmail.com>";
136+ lnl7 = "Daiderd Jordan <daiderd@gmail.com>";
136137 lovek323 = "Jason O'Conal <jason@oconal.id.au>";
137138 ludo = "Ludovic Courtès <ludo@gnu.org>";
138139 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
pkgs/os-specific/darwin/derez/default.nixnew file+34
@@ -0,0 +1,34 @@
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+}
pkgs/os-specific/darwin/rez/default.nixnew file+33
@@ -0,0 +1,33 @@
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+}
pkgs/top-level/all-packages.nix+3
@@ -635,6 +635,9 @@ let
635635
636636 oracle-instantclient = callPackage ../development/libraries/oracle-instantclient { };
637637
638+ derez = callPackage ../os-specific/darwin/derez { };
639+ rez = callPackage ../os-specific/darwin/rez { };
640+
638641 setfile = callPackage ../os-specific/darwin/setfile { };
639642
640643 install_name_tool = callPackage ../os-specific/darwin/install_name_tool { };