mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
Merge pull request #251828 from Artturin/gccfixes1
gcc: move dll to output
This commit is contained in:
commit
a90822c192
@ -219,6 +219,7 @@ originalAttrs: (stdenv.mkDerivation (finalAttrs: originalAttrs // {
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib/lib*.la" "''${!outputLib}"
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib/lib*.dylib" "''${!outputLib}"
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib/lib*.dll.a" "''${!outputLib}"
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib/lib*.dll" "''${!outputLib}"
|
||||
moveToOutput "share/gcc-*/python" "''${!outputLib}"
|
||||
|
||||
if [ -z "$enableShared" ]; then
|
||||
@ -233,6 +234,7 @@ originalAttrs: (stdenv.mkDerivation (finalAttrs: originalAttrs // {
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib64/lib*.so*" "''${!outputLib}"
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib64/lib*.la" "''${!outputLib}"
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib64/lib*.dylib" "''${!outputLib}"
|
||||
moveToOutput "''${targetConfig+$targetConfig/}lib64/lib*.dll" "''${!outputLib}"
|
||||
|
||||
for i in "''${!outputLib}/''${targetConfig}"/lib64/*.{la,py}; do
|
||||
substituteInPlace "$i" --replace "$out" "''${!outputLib}"
|
||||
|
@ -6,6 +6,8 @@ lib.makeScope newScope (self: with self; {
|
||||
|
||||
cygwinSetup = callPackage ./cygwin-setup { };
|
||||
|
||||
dlfcn = callPackage ./dlfcn { };
|
||||
|
||||
jom = callPackage ./jom { };
|
||||
|
||||
w32api = callPackage ./w32api { };
|
||||
|
23
pkgs/os-specific/windows/dlfcn/default.nix
Normal file
23
pkgs/os-specific/windows/dlfcn/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, lib, fetchFromGitHub, cmake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dlfcn";
|
||||
version = "1.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dlfcn-win32";
|
||||
repo = "dlfcn-win32";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ljVTMBiGp8TPufrQcK4zQtcVH1To4zcfBAbUOb+v910=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/dlfcn-win32/dlfcn-win32";
|
||||
description = "Set of functions that allows runtime dynamic library loading";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.windows;
|
||||
maintainers = with maintainers; [ marius851000 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user