mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 00:34:00 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildDotnetModule
|
|
, dotnetCorePackages
|
|
, powershell
|
|
, autoSignDarwinBinariesHook
|
|
, glibcLocales
|
|
}:
|
|
buildDotnetModule rec {
|
|
pname = "ilspycmd";
|
|
version = "8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "icsharpcode";
|
|
repo = "ILSpy";
|
|
rev = "v${version}";
|
|
hash = "sha256-ERBYXgpBRXISfqBSBEydEQuD/5T1dvJ+wNg2U5pKip4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
powershell
|
|
] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ autoSignDarwinBinariesHook ];
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/38991
|
|
# bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
|
|
env.LOCALE_ARCHIVE = lib.optionalString stdenv.hostPlatform.isLinux "${glibcLocales}/lib/locale/locale-archive";
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
|
dotnet-runtime = dotnetCorePackages.runtime_6_0;
|
|
|
|
projectFile = "ICSharpCode.ILSpyCmd/ICSharpCode.ILSpyCmd.csproj";
|
|
nugetDeps = ./deps.nix;
|
|
|
|
meta = with lib; {
|
|
description = "Tool for decompiling .NET assemblies and generating portable PDBs";
|
|
mainProgram = "ilspycmd";
|
|
homepage = "https://github.com/icsharpcode/ILSpy";
|
|
changelog = "https://github.com/icsharpcode/ILSpy/releases/tag/${src.rev}";
|
|
license = with licenses; [
|
|
mit
|
|
# third party dependencies
|
|
mspl
|
|
asl20
|
|
];
|
|
sourceProvenance = with sourceTypes; [ fromSource binaryBytecode ];
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
};
|
|
}
|