Skip to content

Commit

Permalink
Don't build OpenCV contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
jhh committed Feb 3, 2024
1 parent 84bd5dd commit 826bc71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion daemon/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

};

dockerImage = pkgs.dockerTools.streamLayeredImage {
dockerImage = pkgs.dockerTools.buildLayeredImage {
name = "j3ff/deadeye-daemon";
tag = "latest";

Expand Down
2 changes: 1 addition & 1 deletion daemon/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ VERSION := `git rev-parse --short HEAD`

docker:
nix build .#dockerImage
./result | docker load
docker load < result
docker tag {{ IMAGE }}:latest {{ IMAGE }}:{{VERSION}}

run: docker
Expand Down
2 changes: 1 addition & 1 deletion daemon/nix/wpilib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
let
opencv-gstreamer = opencv.overrideAttrs {
enableGStreamer = true;
enableContrib = false;
};

wpilibFlag = name: enabled: "-DWITH_${name}=${if enabled then "ON" else "OFF"}";
Expand All @@ -31,7 +32,6 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ opencv-gstreamer ];

cmakeFlags = [
# (wpilibFlag "FLAT_INSTALL" true)
(wpilibFlag "JAVA" false)
(wpilibFlag "CSCORE" true)
(wpilibFlag "WPIMATH" false)
Expand Down

0 comments on commit 826bc71

Please sign in to comment.