mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +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.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, makeWrapper, bison, gcc, tk, swarm, graphviz }:
|
|
|
|
let
|
|
binPath = lib.makeBinPath [ gcc graphviz tk swarm ];
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spin";
|
|
version = "6.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nimble-code";
|
|
repo = "Spin";
|
|
rev = "version-${version}";
|
|
sha256 = "sha256-drvQXfDZCZRycBZt/VNngy8zs4XVJg+d1b4dQXVcyFU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ bison ];
|
|
|
|
sourceRoot = "${src.name}/Src";
|
|
|
|
preBuild = ''
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/man/man1
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/spin --prefix PATH : ${binPath}
|
|
|
|
mkdir -p $out/share/spin
|
|
cp $src/optional_gui/ispin.tcl $out/share/spin
|
|
makeWrapper $out/share/spin/ispin.tcl $out/bin/ispin \
|
|
--prefix PATH : $out/bin:${binPath}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Formal verification tool for distributed software systems";
|
|
homepage = "https://spinroot.com/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ pSub siraben ];
|
|
};
|
|
}
|