mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
wxmac: clean up and provide with stub packages
This commit is contained in:
parent
e6bc23a801
commit
3b2b2ab046
@ -1,16 +1,11 @@
|
||||
{ stdenv, fetchurl, writeScriptBin,
|
||||
expat, libiconv, libjpeg, libpng, libtiff, zlib
|
||||
{ stdenv, fetchurl
|
||||
, expat, libiconv, libjpeg, libpng, libtiff, zlib
|
||||
, setfile, rez, derez
|
||||
, AGL, Cocoa, Kernel, QuickTime
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let fake = name: writeScriptBin name ''
|
||||
#!${stdenv.shell}
|
||||
echo >&2 "Faking call to ${name} with arguments:"
|
||||
echo >&2 "$@"
|
||||
''; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.0.2";
|
||||
name = "wxmac-${version}";
|
||||
@ -25,7 +20,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [
|
||||
expat libiconv libjpeg libpng libtiff zlib
|
||||
AGL Cocoa Kernel QuickTime
|
||||
(fake "Rez") (fake "Setfile") (fake "DeRez") # not open source
|
||||
setfile rez derez
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
15
pkgs/os-specific/darwin/stubs/default.nix
Normal file
15
pkgs/os-specific/darwin/stubs/default.nix
Normal file
@ -0,0 +1,15 @@
|
||||
{ stdenv, writeScriptBin }:
|
||||
|
||||
let fake = name: stdenv.lib.overrideDerivation (writeScriptBin name ''
|
||||
#!${stdenv.shell}
|
||||
echo >&2 "Faking call to ${name} with arguments:"
|
||||
echo >&2 "$@"
|
||||
'') (drv: {
|
||||
name = "${name}-stub";
|
||||
}); in
|
||||
|
||||
{
|
||||
setfile = fake "SetFile";
|
||||
rez = fake "Rez";
|
||||
derez = fake "DeRez";
|
||||
}
|
@ -4911,18 +4911,18 @@ let
|
||||
erlangR17_javac = callPackage ../development/interpreters/erlang/R17.nix { javacSupport = true; };
|
||||
erlangR17_odbc_javac = callPackage ../development/interpreters/erlang/R17.nix { javacSupport = true; odbcSupport = true; };
|
||||
erlangR18 = callPackage ../development/interpreters/erlang/R18.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
};
|
||||
erlangR18_odbc = callPackage ../development/interpreters/erlang/R18.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
odbcSupport = true;
|
||||
};
|
||||
erlangR18_javac = callPackage ../development/interpreters/erlang/R18.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
javacSupport = true;
|
||||
};
|
||||
erlangR18_odbc_javac = callPackage ../development/interpreters/erlang/R18.nix {
|
||||
inherit (darwin.apple_sdk.frameworks) AppKit Carbon Cocoa;
|
||||
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
|
||||
javacSupport = true; odbcSupport = true;
|
||||
};
|
||||
erlang = erlangR18;
|
||||
@ -8532,16 +8532,19 @@ let
|
||||
|
||||
wxGTK29 = callPackage ../development/libraries/wxGTK-2.9/default.nix {
|
||||
inherit (gnome) GConf;
|
||||
inherit (darwin.stubs) setfile;
|
||||
withMesa = lib.elem system lib.platforms.mesaPlatforms;
|
||||
};
|
||||
|
||||
wxGTK30 = callPackage ../development/libraries/wxGTK-3.0/default.nix {
|
||||
inherit (gnome) GConf;
|
||||
inherit (darwin.stubs) setfile;
|
||||
withMesa = lib.elem system lib.platforms.mesaPlatforms;
|
||||
};
|
||||
|
||||
wxmac = callPackage ../development/libraries/wxmac {
|
||||
inherit (darwin.apple_sdk.frameworks) AGL Cocoa Kernel QuickTime;
|
||||
inherit (darwin.stubs) setfile rez derez;
|
||||
};
|
||||
|
||||
wtk = callPackage ../development/libraries/wtk { };
|
||||
@ -9627,6 +9630,8 @@ let
|
||||
apple_sdk = callPackage ../os-specific/darwin/apple-sdk {};
|
||||
|
||||
libobjc = apple-source-releases.objc4;
|
||||
|
||||
stubs = callPackages ../os-specific/darwin/stubs {};
|
||||
};
|
||||
|
||||
gnustep-make = callPackage ../development/tools/build-managers/gnustep/make {};
|
||||
|
Loading…
Reference in New Issue
Block a user