nixpkgs/pkgs/by-name/ai/aiken/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
898 B
Nix
Raw Normal View History

2024-03-22 02:14:19 +00:00
{
lib,
openssl,
pkg-config,
rustPlatform,
fetchFromGitHub,
darwin,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "aiken";
2024-11-01 21:18:59 +00:00
version = "1.1.5";
2024-03-22 02:14:19 +00:00
src = fetchFromGitHub {
owner = "aiken-lang";
repo = "aiken";
rev = "v${version}";
2024-11-01 21:18:59 +00:00
hash = "sha256-cspIIuH+0LJItTz9wk6mChwEMFP3GDpI+KKg0FWM9bQ=";
2024-03-22 02:14:19 +00:00
};
2024-11-01 21:18:59 +00:00
cargoHash = "sha256-aylmZFb+UaK3OEpJLOf4NuT4uMLRhdUg+cSjzxRo7t8=";
2024-03-22 02:14:19 +00:00
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";
};
}