about summary refs log tree commit diff
path: root/pkgs/by-name/ai
diff options
context:
space:
mode:
authort4ccer2024-03-21 20:14:19 -0600
committert4ccer2024-07-30 08:31:52 -0600
commit453bb3cdb940fb1e1408a229f488d35ff2a7fc3f (patch)
treed405bc85004e1e409a2aee0c566127a98896ac71 /pkgs/by-name/ai
parentd9a8c99bf464b9c76d30c8a1804b6ba19cbf125a (diff)
aiken: init at 1.0.29-alpha
Diffstat (limited to 'pkgs/by-name/ai')
-rw-r--r--pkgs/by-name/ai/aiken/package.nix44
1 files changed, 44 insertions, 0 deletions
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";
+  };
+}