electron_32: fix log spam when building on aarch64-linux (#378988)
[NixPkgs.git] / pkgs / by-name / fo / formula / package.nix
blob7913d9ec8a7ed8f6e6bfdb7aa2bc239643549566
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   buildDotnetModule,
6   dotnetCorePackages,
7   unstableGitUpdater,
8 }:
10 buildDotnetModule (finalAttrs: {
11   pname = "formula-dotnet";
12   version = "2.0";
14   src = fetchFromGitHub {
15     owner = "VUISIS";
16     repo = "formula-dotnet";
17     rev = "8ee2e6abfd4ce038e1d9cb9c8602dec1ed6c0163";
18     hash = "sha256-2ulv//YV3OqrfFltgUCeDe4rOPC0qqJ+80/D2lIoih8=";
19   };
21   patches = [ ./dotnet-8-upgrade.patch ];
23   dotnet-sdk = dotnetCorePackages.sdk_8_0;
24   nugetDeps = ./nuget.json;
25   projectFile = "Src/CommandLine/CommandLine.csproj";
27   postFixup =
28     lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
29       mv $out/bin/CommandLine $out/bin/formula
30     ''
31     + lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
32       makeWrapper ${dotnetCorePackages.runtime_8_0}/bin/dotnet $out/bin/formula \
33         --add-flags "$out/lib/formula-dotnet/CommandLine.dll" \
34         --prefix DYLD_LIBRARY_PATH : $out/lib/formula-dotnet/runtimes/macos/native
35     '';
37   passthru.updateScript = unstableGitUpdater { url = finalAttrs.meta.homepage; };
39   meta = with lib; {
40     description = "Formal Specifications for Verification and Synthesis";
41     homepage = "https://github.com/VUISIS/formula-dotnet";
42     license = licenses.mspl;
43     maintainers = with maintainers; [ siraben ];
44     platforms = platforms.unix;
45     mainProgram = "formula";
46   };