mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +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.
56 lines
1.7 KiB
Nix
56 lines
1.7 KiB
Nix
{ lib, stdenv, fetchurl, unzip, makeWrapper, makeDesktopItem, icoutils, jre8 }:
|
|
|
|
let
|
|
desktopItem = makeDesktopItem {
|
|
name = "groove-simulator";
|
|
exec = "groove-simulator";
|
|
icon = "groove";
|
|
desktopName = "GROOVE Simulator";
|
|
comment = "GRaphs for Object-Oriented VErification";
|
|
categories = [ "Science" "ComputerScience" ];
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "groove";
|
|
version = "5.8.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/groove/groove/${version}/${pname}-${builtins.replaceStrings ["."] ["_"] version}-bin.zip";
|
|
sha256 = "sha256-JwoUlO6F2+8NtCnLC+xm5q0Jm8RIyU1rnuKGmjgJhFU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip makeWrapper icoutils ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/groove
|
|
cp -r bin lib $out/share/groove/
|
|
|
|
mkdir -p $out/share/doc/groove
|
|
cp CHANGES README *.pdf $out/share/doc/groove/
|
|
|
|
mkdir -p $out/bin
|
|
for bin in Generator Imager ModelChecker PrologChecker Simulator Viewer; do
|
|
makeWrapper ${jre8}/bin/java $out/bin/groove-''${bin,,} \
|
|
--add-flags "-jar $out/share/groove/bin/$bin.jar"
|
|
done
|
|
|
|
mkdir -p $out/share/applications
|
|
ln -s ${desktopItem}/share/applications/* $out/share/applications/
|
|
|
|
mkdir -p $out/share/icons/hicolor/{16x16,32x32}/apps
|
|
icotool -x -i 1 -o $out/share/icons/hicolor/32x32/apps/groove.png groove-green-g.ico
|
|
icotool -x -i 2 -o $out/share/icons/hicolor/16x16/apps/groove.png groove-green-g.ico
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GRaphs for Object-Oriented VErification";
|
|
homepage = "http://groove.cs.utwente.nl/";
|
|
license = licenses.asl20;
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
};
|
|
}
|