nixpkgs/pkgs/by-name/ai/aiken/package.nix
2024-11-01 21:18:59 +00:00

45 lines
898 B
Nix

{
lib,
openssl,
pkg-config,
rustPlatform,
fetchFromGitHub,
darwin,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "aiken";
version = "1.1.5";
src = fetchFromGitHub {
owner = "aiken-lang";
repo = "aiken";
rev = "v${version}";
hash = "sha256-cspIIuH+0LJItTz9wk6mChwEMFP3GDpI+KKg0FWM9bQ=";
};
cargoHash = "sha256-aylmZFb+UaK3OEpJLOf4NuT4uMLRhdUg+cSjzxRo7t8=";
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
CoreServices
SystemConfiguration
]
);
nativeBuildInputs = [ pkg-config ];
meta = {
description = "Modern smart contract platform for Cardano";
homepage = "https://aiken-lang.org";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ t4ccer ];
mainProgram = "aiken";
};
}