Skip to content

Commit

Permalink
chore: build aiken package directly
Browse files Browse the repository at this point in the history
When you build it currently, most of the code is kept on the final
derivation. Building it manually makes sure that only the binaries are
there.
  • Loading branch information
cfcosta committed Jul 24, 2023
1 parent 152e847 commit 7a27566
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@

buildInputs = with pkgs; [ openssl ] ++ osxDependencies;
nativeBuildInputs = with pkgs; [ pkg-config openssl.dev ];
cargoBuildFlags = [ "--package aiken" ];
cargoBuildFlags = [ "-p aiken" ];

src = pkgs.lib.cleanSourceWith { src = self; };

cargoLock.lockFile = ./Cargo.lock;

installPhase = ''
mkdir -p $out/bin
cp target/release/aiken $out/bin
'';

meta = with pkgs.lib; {
description = "Cardano smart contract language and toolchain";
homepage = "https://github.com/aiken-lang/aiken";
Expand Down

0 comments on commit 7a27566

Please sign in to comment.