Skip to content

Commit

Permalink
Merge pull request #16 from h0nzZik/nix-docker
Browse files Browse the repository at this point in the history
Build a Docker image
  • Loading branch information
h0nzZik authored Jun 25, 2024
2 parents 4084d93 + a42773f commit c35ead1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
- name: 'Run standalone examples'
run: nix develop -L '.#examples-standalone' --command ./examples-standalone/test.sh

- name: 'Build Docker image'
run: nix build -L '.#minuska-docker' --out-link ./result-minuska-docker


#- name: Build
# run: nix develop '.#minuska' --command ./build-and-profile.sh
Expand Down
12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@
passthru = { coqPackages = pkgs.coqPackages_8_19; };
} ) { } ;


# TODO remove this
packages.minuska-symbolic
= pkgs.coqPackages_8_19.callPackage
( { coq, stdenv }:
Expand All @@ -163,6 +165,16 @@
passthru = { coqPackages = pkgs.coqPackages_8_19; };
} ) { } ;


packages.minuska-docker
= pkgs.dockerTools.buildImage {
name = "minuska-docker";
config = {
Cmd = [ "${self.outputs.packages.${system}.minuska}/bin/minuska" ];
};
};


packages.default = self.outputs.packages.${system}.minuska;

devShells = {
Expand Down

0 comments on commit c35ead1

Please sign in to comment.