diff --git a/pkgs/build-support/dotnet/dotnetenv/Wrapper/.editorconfig b/pkgs/build-support/dotnet/dotnetenv/Wrapper/.editorconfig deleted file mode 100644 index 15ffe1f4b563..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/Wrapper/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -[*] -end_of_line = unset -indent_style = unset -insert_final_newline = unset -trim_trailing_whitespace = unset diff --git a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper.sln b/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper.sln deleted file mode 100644 index 7e4c934c9bed..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper.sln +++ /dev/null @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wrapper", "Wrapper\Wrapper.csproj", "{D01B3597-E85E-42F4-940A-EF5AE712942F}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D01B3597-E85E-42F4-940A-EF5AE712942F}.Debug|x86.ActiveCfg = Debug|x86 - {D01B3597-E85E-42F4-940A-EF5AE712942F}.Debug|x86.Build.0 = Debug|x86 - {D01B3597-E85E-42F4-940A-EF5AE712942F}.Release|x86.ActiveCfg = Release|x86 - {D01B3597-E85E-42F4-940A-EF5AE712942F}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Properties/AssemblyInfo.cs b/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Properties/AssemblyInfo.cs deleted file mode 100644 index 633d23c05ff2..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Wrapper")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Philips Healthcare")] -[assembly: AssemblyProduct("Wrapper")] -[assembly: AssemblyCopyright("Copyright © Philips Healthcare 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("2045ce22-78c7-4cd6-ad0a-9367f8a49738")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Wrapper.cs.in b/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Wrapper.cs.in deleted file mode 100644 index abad090ebcbf..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Wrapper.cs.in +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Reflection; -using System.IO; - -namespace @NAMESPACE@Wrapper -{ - class @MAINCLASSNAME@Wrapper - { - private String[] AssemblySearchPaths = { @ASSEMBLYSEARCHPATH@ }; - - private String ExePath = @"@EXEPATH@"; - - private String MainClassName = "@NAMESPACE@.@MAINCLASSNAME@"; - - private Assembly exeAssembly; - - public @MAINCLASSNAME@Wrapper(string[] args) - { - // Attach the resolve event handler to the AppDomain so that missing library assemblies will be searched - AppDomain currentDomain = AppDomain.CurrentDomain; - currentDomain.AssemblyResolve += new ResolveEventHandler(MyResolveEventHandler); - - // Dynamically load the executable assembly - exeAssembly = Assembly.LoadFrom(ExePath); - - // Lookup the main class - Type mainClass = exeAssembly.GetType(MainClassName); - - // Lookup the main method - MethodInfo mainMethod = mainClass.GetMethod("Main"); - - // Invoke the main method - mainMethod.Invoke(this, new Object[] {args}); - } - - static void Main(string[] args) - { - new @MAINCLASSNAME@Wrapper(args); - } - - private Assembly MyResolveEventHandler(object sender, ResolveEventArgs args) - { - // This handler is called only when the common language runtime tries to bind to the assembly and fails. - - Assembly MyAssembly; - String assemblyPath = ""; - String requestedAssemblyName = args.Name.Substring(0, args.Name.IndexOf(",")); - - // Search for the right path of the library assembly - foreach (String currentAssemblyPath in AssemblySearchPaths) - { - assemblyPath = currentAssemblyPath + "/" + requestedAssemblyName + ".dll"; - - if (File.Exists(assemblyPath)) - break; - } - - // Load the assembly from the specified path. - MyAssembly = Assembly.LoadFrom(assemblyPath); - - // Return the loaded assembly. - return MyAssembly; - } - - } -} diff --git a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Wrapper.csproj.in b/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Wrapper.csproj.in deleted file mode 100644 index a991bcb6933a..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/Wrapper/Wrapper/Wrapper.csproj.in +++ /dev/null @@ -1,57 +0,0 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {D01B3597-E85E-42F4-940A-EF5AE712942F} - Exe - Properties - @ROOTNAMESPACE@ - @ASSEMBLYNAME@ - v4.0 - Client - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/pkgs/build-support/dotnet/dotnetenv/build-solution.nix b/pkgs/build-support/dotnet/dotnetenv/build-solution.nix deleted file mode 100644 index dc811ebfd545..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/build-solution.nix +++ /dev/null @@ -1,87 +0,0 @@ -{ - lib, - stdenv, - dotnetfx, -}: -{ - name, - src, - baseDir ? ".", - slnFile, - targets ? "ReBuild", - verbosity ? "detailed", - options ? "/p:Configuration=Debug;Platform=Win32", - assemblyInputs ? [ ], - preBuild ? "", - modifyPublicMain ? false, - mainClassFile ? null, -}: - -assert modifyPublicMain -> mainClassFile != null; - -stdenv.mkDerivation { - inherit name src; - - buildInputs = [ dotnetfx ]; - - preConfigure = '' - cd ${baseDir} - ''; - - preBuild = '' - ${lib.optionalString modifyPublicMain '' - sed -i -e "s|static void Main|public static void Main|" ${mainClassFile} - ''} - ${preBuild} - ''; - - installPhase = '' - runHook preInstall - - addDeps() { - if [ -f $1/nix-support/dotnet-assemblies ]; then - for i in $(cat $1/nix-support/dotnet-assemblies); do - windowsPath=$(cygpath --windows $i) - assemblySearchPaths="$assemblySearchPaths;$windowsPath" - - addDeps $i - done - fi - } - - for i in ${toString assemblyInputs}; do - windowsPath=$(cygpath --windows $i) - echo "Using assembly path: $windowsPath" - - if [ "$assemblySearchPaths" = "" ]; then - assemblySearchPaths="$windowsPath" - else - assemblySearchPaths="$assemblySearchPaths;$windowsPath" - fi - - addDeps $i - done - - echo "Assembly search paths are: $assemblySearchPaths" - - if [ "$assemblySearchPaths" != "" ]; then - echo "Using assembly search paths args: $assemblySearchPathsArg" - export AssemblySearchPaths=$assemblySearchPaths - fi - - mkdir -p $out - MSBuild.exe ${toString slnFile} /nologo /t:${targets} /p:IntermediateOutputPath=$(cygpath --windows $out)\\ /p:OutputPath=$(cygpath --windows $out)\\ /verbosity:${verbosity} ${options} - - # Because .NET assemblies store strings as UTF-16 internally, we cannot detect - # hashes. Therefore a text files containing the proper paths is created - # We can also use this file the propagate transitive dependencies. - - mkdir -p $out/nix-support - - for i in ${toString assemblyInputs}; do - echo $i >> $out/nix-support/dotnet-assemblies - done - - runHook postInstall - ''; -} diff --git a/pkgs/build-support/dotnet/dotnetenv/default.nix b/pkgs/build-support/dotnet/dotnetenv/default.nix deleted file mode 100644 index 5468a4916cae..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/default.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ - lib, - stdenv, - dotnetfx, -}: - -let - dotnetenv = { - buildSolution = import ./build-solution.nix { - inherit lib stdenv; - dotnetfx = dotnetfx.pkg; - }; - - buildWrapper = import ./wrapper.nix { - inherit dotnetenv; - }; - - inherit (dotnetfx) - assembly20Path - wcfPath - referenceAssembly30Path - referenceAssembly35Path - ; - }; -in -dotnetenv diff --git a/pkgs/build-support/dotnet/dotnetenv/wrapper.nix b/pkgs/build-support/dotnet/dotnetenv/wrapper.nix deleted file mode 100644 index 82685abf724f..000000000000 --- a/pkgs/build-support/dotnet/dotnetenv/wrapper.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ dotnetenv }: - -{ - name, - src, - baseDir ? ".", - slnFile, - targets ? "ReBuild", - verbosity ? "detailed", - options ? "/p:Configuration=Debug;Platform=Win32", - assemblyInputs ? [ ], - preBuild ? "", - namespace, - mainClassName, - mainClassFile, - modifyPublicMain ? true, -}: - -let - application = dotnetenv.buildSolution { - inherit - name - src - baseDir - slnFile - targets - verbosity - ; - inherit options assemblyInputs preBuild; - inherit modifyPublicMain mainClassFile; - }; -in -dotnetenv.buildSolution { - name = "${name}-wrapper"; - src = ./Wrapper; - slnFile = "Wrapper.sln"; - assemblyInputs = [ application ]; - preBuild = '' - addRuntimeDeps() { - if [ -f $1/nix-support/dotnet-assemblies ]; then - for i in $(cat $1/nix-support/dotnet-assemblies); do - windowsPath=$(cygpath --windows $i | sed 's|\\|\\\\|g') - assemblySearchArray="$assemblySearchArray @\"$windowsPath\"" - - addRuntimeDeps $i - done - fi - } - - export exePath=$(cygpath --windows $(find ${application} -name \*.exe) | sed 's|\\|\\\\|g') - - # Generate assemblySearchPaths string array contents - for path in ${toString assemblyInputs}; do - assemblySearchArray="$assemblySearchArray @\"$(cygpath --windows $path | sed 's|\\|\\\\|g')\", " - addRuntimeDeps $path - done - - sed -e "s|@ROOTNAMESPACE@|${namespace}Wrapper|" \ - -e "s|@ASSEMBLYNAME@|${namespace}|" \ - Wrapper/Wrapper.csproj.in > Wrapper/Wrapper.csproj - - sed -e "s|@NAMESPACE@|${namespace}|g" \ - -e "s|@MAINCLASSNAME@|${mainClassName}|g" \ - -e "s|@EXEPATH@|$exePath|g" \ - -e "s|@ASSEMBLYSEARCHPATH@|$assemblySearchArray|" \ - Wrapper/Wrapper.cs.in > Wrapper/Wrapper.cs - ''; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index daf20a97a577..1e3e5ae4fc87 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -565,6 +565,7 @@ mapAliases { dotnet-sdk_2 = throw "'dotnet-sdk_2' has been renamed to/replaced by 'dotnetCorePackages.sdk_2_1'"; # Converted to throw 2024-10-17 dotnet-sdk_3 = throw "'dotnet-sdk_3' has been renamed to/replaced by 'dotnetCorePackages.sdk_3_1'"; # Converted to throw 2024-10-17 dotnet-sdk_5 = throw "'dotnet-sdk_5' has been renamed to/replaced by 'dotnetCorePackages.sdk_5_0'"; # Converted to throw 2024-10-17 + dotnetenv = throw "'dotnetenv' has been removed because it was unmaintained in Nixpkgs"; # Added 2025-07-11 downonspot = throw "'downonspot' was removed because upstream has been taken down by a cease and desist"; # Added 2025-01-25 dozenal = throw "dozenal has been removed because it does not compile and only minimal functionality"; # Added 2025-03-30 dstat = throw "'dstat' has been removed because it has been unmaintained since 2020. Use 'dool' instead."; # Added 2025-01-21 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c1936ff29846..286e790df8e3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -498,10 +498,6 @@ with pkgs; autoPatchcilHook ; - dotnetenv = callPackage ../build-support/dotnet/dotnetenv { - dotnetfx = dotnetfx40; - }; - buildDotnetPackage = callPackage ../build-support/dotnet/build-dotnet-package { }; fetchNuGet = callPackage ../build-support/dotnet/fetchnuget { }; dupeguru = callPackage ../applications/misc/dupeguru {