Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Copy only source files into Nix source
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Apr 11, 2024
1 parent 6c27494 commit 9e2f60c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nix/sov-celestia-cw.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@
let
sov-celestia-src = nixpkgs.stdenv.mkDerivation {
name = "sov-celestia-src";
src = ../.;
dontUnpack = true;
dontBuild = true;

installPhase = ''
mkdir -p $out $out/vendor
cp -r clients modules mocks proto Cargo.toml Cargo.lock $out
cp -r ${../clients} $out/clients
cp -r ${../modules} $out/modules
cp -r ${../mocks} $out/mocks
cp -r ${../proto} $out/proto
cp -r ${sovereign-sdk-src} $out/vendor/sovereign-sdk
cp ${../Cargo.lock} $out/Cargo.lock
cat .cargo/config.toml >> $out/Cargo.toml
cat ${../Cargo.toml} > $out/Cargo.toml
cat ${../.cargo/config.toml} >> $out/Cargo.toml
'';
};

Expand Down

0 comments on commit 9e2f60c

Please sign in to comment.