From 453bb3cdb940fb1e1408a229f488d35ff2a7fc3f Mon Sep 17 00:00:00 2001 From: t4ccer Date: Thu, 21 Mar 2024 20:14:19 -0600 Subject: aiken: init at 1.0.29-alpha --- pkgs/by-name/ai/aiken/package.nix | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/ai/aiken/package.nix (limited to 'pkgs/by-name/ai') diff --git a/pkgs/by-name/ai/aiken/package.nix b/pkgs/by-name/ai/aiken/package.nix new file mode 100644 index 000000000000..3ebdb3706b55 --- /dev/null +++ b/pkgs/by-name/ai/aiken/package.nix @@ -0,0 +1,44 @@ +{ + 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"; + }; +} -- cgit 1.4.1