Skip to content

Commit

Permalink
CAD-1842: RTView Darwin, independent executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Shevchenko committed Sep 16, 2020
1 parent 2344958 commit 6f54c00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions nix/darwin-release.nix
Expand Up @@ -19,20 +19,25 @@ let

in pkgs.runCommand name {
buildInputs = with pkgs.buildPackages; [
binutils
darwin.cctools
nix
haskellBuildUtils.package
zip
];
} ''
mkdir -p $out release
rewrite-libs release ${rtViewServiceExe}/bin/*
cd release
mkdir ./static
cp -R ${staticDir}/* ./static/
cp ${rtViewServiceExe}/bin/* .
chmod -R +w .
rewrite-libs ./ ${rtViewServiceExe}/bin/*
dist_file=$out/${name}.zip
zip -r $dist_file .
Expand Down
3 changes: 2 additions & 1 deletion release.nix
Expand Up @@ -102,7 +102,8 @@ let
resourcesDir = ./cardano-rt-view/resources;
};
cardano-rt-view-service-darwin-release = import ./nix/darwin-release.nix {
inherit (pkgsFor "x86_64-darwin") pkgs project;
inherit (pkgsFor "x86_64-darwin") pkgs;
inherit project;
exes = filter (p: p.system == "x86_64-darwin") (collectJobs jobs.native.exes.cardano-rt-view);
staticDir = ./cardano-rt-view/static;
};
Expand Down

0 comments on commit 6f54c00

Please sign in to comment.