mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 07:14:52 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, buildDotnetModule, dotnetCorePackages, unstableGitUpdater }:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "formula-dotnet";
|
|
version = "2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "VUISIS";
|
|
repo = "formula-dotnet";
|
|
rev = "8ee2e6abfd4ce038e1d9cb9c8602dec1ed6c0163";
|
|
sha256 = "sha256-2ulv//YV3OqrfFltgUCeDe4rOPC0qqJ+80/D2lIoih8=";
|
|
};
|
|
|
|
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 \
|
|
--add-flags "$out/lib/formula-dotnet/CommandLine.dll" \
|
|
--prefix DYLD_LIBRARY_PATH : $out/lib/formula-dotnet/runtimes/macos/native
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { url = meta.homepage; };
|
|
|
|
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;
|
|
mainProgram = "formula";
|
|
};
|
|
}
|