Files
nixpkgs/pkgs/by-name/fo/formula/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1.3 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
buildDotnetModule,
dotnetCorePackages,
unstableGitUpdater,
}:
buildDotnetModule (finalAttrs: {
pname = "formula-dotnet";
version = "2.0";
src = fetchFromGitHub {
owner = "VUISIS";
repo = "formula-dotnet";
rev = "8ee2e6abfd4ce038e1d9cb9c8602dec1ed6c0163";
hash = "sha256-2ulv//YV3OqrfFltgUCeDe4rOPC0qqJ+80/D2lIoih8=";
};
patches = [ ./dotnet-8-upgrade.patch ];
dotnet-sdk = dotnetCorePackages.sdk_8_0;
nugetDeps = ./nuget.json;
projectFile = "Src/CommandLine/CommandLine.csproj";
postFixup =
lib.optionalString stdenvNoCC.hostPlatform.isLinux ''
mv $out/bin/CommandLine $out/bin/formula
''
+ lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
makeWrapper ${dotnetCorePackages.runtime_8_0}/bin/dotnet $out/bin/formula \
--add-flags "$out/lib/formula-dotnet/CommandLine.dll" \
--prefix DYLD_LIBRARY_PATH : $out/lib/formula-dotnet/runtimes/macos/native
'';
passthru.updateScript = unstableGitUpdater { url = finalAttrs.meta.homepage; };
meta = {
description = "Formal Specifications for Verification and Synthesis";
homepage = "https://github.com/VUISIS/formula-dotnet";
license = lib.licenses.mspl;
maintainers = with lib.maintainers; [ siraben ];
platforms = lib.platforms.unix;
mainProgram = "formula";
};
})