avalonia-ilspy: Init at 7.2-rc (#182196)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Emil Johansen 2022-07-22 16:20:40 +02:00 committed by GitHub
parent 3b011f3069
commit c8fc89334d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 111 additions and 0 deletions

View file

@ -845,6 +845,16 @@
githubId = 11699655;
name = "Stanislas Lange";
};
AngryAnt = {
name = "Emil Johansen";
email = "git@eej.dk";
matrix = "@angryant:envs.net";
github = "AngryAnt";
githubId = 102513;
keys = [{
fingerprint = "B7B7 582E 564E 789B FCB8 71AB 0C6D FE2F B234 534A";
}];
};
anhdle14 = {
name = "Le Anh Duc";
email = "anhdle14@icloud.com";

View file

@ -0,0 +1,99 @@
{ lib
, stdenv
, fetchzip
, unzip
, autoPatchelfHook
, makeWrapper
, makeDesktopItem
, copyDesktopItems
, lttng-ust
, libkrb5
, zlib
, fontconfig
, openssl_1_1
, libX11
, libICE
, libSM
, icu
}:
stdenv.mkDerivation rec {
pname = "avalonia-ilspy";
version = "7.2-rc";
src = fetchzip {
url = "https://github.com/icsharpcode/AvaloniaILSpy/releases/download/v${version}/Linux.x64.Release.zip";
sha256 = "1crf0ng4l6x70wjlz3r6qw8l166gd52ys11j7ilb4nyy3mkjxk11";
};
nativeBuildInputs = [
unzip
autoPatchelfHook
makeWrapper
copyDesktopItems
];
buildInputs = [
stdenv.cc.cc.lib
lttng-ust
libkrb5
zlib
fontconfig
];
libraryPath = lib.makeLibraryPath [
openssl_1_1
libX11
libICE
libSM
icu
];
unpackPhase = ''
unzip -qq $src/ILSpy-linux-x64-Release.zip
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/lib $out/share/icons/hicolor/scalable/apps
cp -r artifacts/linux-x64/* $out/lib
ln -s $out/lib/Images/ILSpy.png $out/share/icons/hicolor/scalable/apps/ILSpy.png
chmod +x $out/lib/ILSpy
wrapProgram $out/lib/ILSpy --prefix LD_LIBRARY_PATH : ${libraryPath}
mv $out/lib/ILSpy $out/bin
runHook postInstall
'';
# dotnet runtime requirements
preFixup = ''
patchelf --replace-needed liblttng-ust.so.0 liblttng-ust.so $out/lib/libcoreclrtraceptprovider.so
'';
dontStrip = true;
desktopItem = makeDesktopItem {
name = "ILSpy";
desktopName = "ILSpy";
exec = "ILSpy";
icon = "ILSpy";
comment = ".NET assembly browser and decompiler";
categories = [
"Development"
];
keywords = [
".net"
"il"
"assembly"
];
};
meta = with lib; {
description = ".NET assembly browser and decompiler";
homepage = "https://github.com/icsharpcode/AvaloniaILSpy";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ AngryAnt ];
};
}

View file

@ -27904,6 +27904,8 @@ with pkgs;
texinfo = texinfo6_7; # Uses @setcontentsaftertitlepage, removed in 6.8.
};
avalonia-ilspy = callPackage ../applications/misc/avalonia-ilspy { };
imag = callPackage ../applications/misc/imag {
inherit (darwin.apple_sdk.frameworks) Security;
};