nixpkgs/pkgs/by-name/fo/formula/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.2 KiB
Nix
Raw Normal View History

2022-06-21 20:13:20 +00:00
{ lib, stdenv, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, unstableGitUpdater }:
2022-02-01 01:22:42 +00:00
buildDotnetModule rec {
pname = "formula-dotnet";
version = "2.0";
src = fetchFromGitHub {
owner = "VUISIS";
repo = "formula-dotnet";
rev = "8ee2e6abfd4ce038e1d9cb9c8602dec1ed6c0163";
sha256 = "sha256-2ulv//YV3OqrfFltgUCeDe4rOPC0qqJ+80/D2lIoih8=";
2022-02-01 01:22:42 +00:00
};
dotnet-sdk = dotnetCorePackages.sdk_6_0;
2022-02-01 01:22:42 +00:00
nugetDeps = ./nuget.nix;
projectFile = "Src/CommandLine/CommandLine.csproj";
postFixup = if stdenv.hostPlatform.isLinux then ''
mv $out/bin/CommandLine $out/bin/formula
'' else lib.optionalString stdenv.hostPlatform.isDarwin ''
makeWrapper ${dotnetCorePackages.runtime_6_0}/bin/dotnet $out/bin/formula \
2022-02-01 01:22:42 +00:00
--add-flags "$out/lib/formula-dotnet/CommandLine.dll" \
--prefix DYLD_LIBRARY_PATH : $out/lib/formula-dotnet/runtimes/macos/native
'';
2022-06-21 20:13:20 +00:00
passthru.updateScript = unstableGitUpdater { url = meta.homepage; };
2022-02-01 01:22:42 +00:00
meta = with lib; {
description = "Formal Specifications for Verification and Synthesis";
homepage = "https://github.com/VUISIS/formula-dotnet";
license = licenses.mspl;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
2022-07-15 18:41:08 +00:00
mainProgram = "formula";
2022-02-01 01:22:42 +00:00
};
}