Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espresso: init at 2.4 #272597

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pkgs/by-name/es/espresso/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib, fetchFromGitHub, cmake, stdenv, nix-update-script }:
stdenv.mkDerivation rec {
pname = "espresso";
version = "2.4";
src = fetchFromGitHub {
owner = "chipsalliance";
repo = "espresso";
rev = "v${version}";
hash = "sha256-z5By57VbmIt4sgRgvECnLbZklnDDWUA6fyvWVyXUzsI=";
};

nativeBuildInputs = [ cmake ];

doCheck = true;

outputs = [ "out" "man" ];

passthru.updateScript = nix-update-script { };

meta = with lib;{
description = "Multi-valued PLA minimization";
# from manual
longDescription = ''
Espresso takes as input a two-level representation of a
two-valued (or multiple-valued) Boolean function, and produces a
minimal equivalent representation. The algorithms used are new and
represent an advance in both speed and optimality of solution in
heuristic Boolean minimization.
'';
homepage = "https://github.com/chipsalliance/espresso";
maintainers = with maintainers;[ pineapplehunter ];
mainProgram = "espresso";
platforms = lib.platforms.all;

# The license is not provided in the GitHub repo,
# so until there's an update on the license, it is marked as unfree.
# See: https://github.com/chipsalliance/espresso/issues/4
license = licenses.unfree;
};
}