pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / ai / aiken / package.nix
blob34ffc4a35adaf8c504fc61b197d89a53bb379222
2   lib,
3   openssl,
4   pkg-config,
5   rustPlatform,
6   fetchFromGitHub,
7   darwin,
8   stdenv,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "aiken";
13   version = "1.1.5";
15   src = fetchFromGitHub {
16     owner = "aiken-lang";
17     repo = "aiken";
18     rev = "v${version}";
19     hash = "sha256-cspIIuH+0LJItTz9wk6mChwEMFP3GDpI+KKg0FWM9bQ=";
20   };
22   cargoHash = "sha256-aylmZFb+UaK3OEpJLOf4NuT4uMLRhdUg+cSjzxRo7t8=";
24   buildInputs =
25     [ openssl ]
26     ++ lib.optionals stdenv.hostPlatform.isDarwin (
27       with darwin.apple_sdk.frameworks;
28       [
29         Security
30         CoreServices
31         SystemConfiguration
32       ]
33     );
35   nativeBuildInputs = [ pkg-config ];
37   meta = {
38     description = "Modern smart contract platform for Cardano";
39     homepage = "https://aiken-lang.org";
40     license = lib.licenses.asl20;
41     maintainers = with lib.maintainers; [ t4ccer ];
42     mainProgram = "aiken";
43   };