7 , autoSignDarwinBinariesHook
10 buildDotnetModule rec {
14 src = fetchFromGitHub {
15 owner = "icsharpcode";
18 hash = "sha256-ERBYXgpBRXISfqBSBEydEQuD/5T1dvJ+wNg2U5pKip4=";
23 ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ autoSignDarwinBinariesHook ];
25 # https://github.com/NixOS/nixpkgs/issues/38991
26 # bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
27 env.LOCALE_ARCHIVE = lib.optionalString stdenv.hostPlatform.isLinux "${glibcLocales}/lib/locale/locale-archive";
29 dotnet-sdk = dotnetCorePackages.sdk_6_0;
30 dotnet-runtime = dotnetCorePackages.runtime_6_0;
32 projectFile = "ICSharpCode.ILSpyCmd/ICSharpCode.ILSpyCmd.csproj";
33 nugetDeps = ./deps.nix;
35 # see: https://github.com/tunnelvisionlabs/ReferenceAssemblyAnnotator/issues/94
36 linkNugetPackages = true;
39 description = "Tool for decompiling .NET assemblies and generating portable PDBs";
40 mainProgram = "ilspycmd";
41 homepage = "https://github.com/icsharpcode/ILSpy";
42 changelog = "https://github.com/icsharpcode/ILSpy/releases/tag/${src.rev}";
43 license = with licenses; [
45 # third party dependencies
49 sourceProvenance = with sourceTypes; [ fromSource binaryBytecode ];
50 maintainers = with maintainers; [ emilytrau ];