nixpkgs/pkgs/by-name/ai/aiken/package.nix
2024-07-30 08:31:52 -06:00

45 lines
919 B
Nix

{
lib,
openssl,
pkg-config,
rustPlatform,
fetchFromGitHub,
darwin,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "aiken";
version = "1.0.29-alpha"; # all releases are 'alpha'
src = fetchFromGitHub {
owner = "aiken-lang";
repo = "aiken";
rev = "v${version}";
hash = "sha256-fikXypc9HKil4Ut4jdgQtTTy/CHEogEpDprwdTgd9b4=";
};
cargoHash = "sha256-UWDPXnq2k/PoogrfuW93ieRW8AfuNIEfri9Jo6gHkdg=";
buildInputs =
[ openssl ]
++ lib.optionals stdenv.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";
};
}