Skip to content

Commit 4ea4654

Browse files
committed
Use the new Cabal-2.2 field cxx-options
1 parent a3396ad commit 4ea4654

File tree

10 files changed

+124
-375
lines changed

10 files changed

+124
-375
lines changed

fetchNixpkgs.nix

Lines changed: 0 additions & 38 deletions
This file was deleted.

nixpkgs-version.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
rev = "69a03de0384d767a155a459c5385e2b316578bc0";
3-
sha256 = "15p1z8k338d9rvis9wzk8mdjvk6925g9ks0zhwa18905k19zvr1v";
2+
rev = "1d9330d63a5a30f4eb578eda7840be7b11ec6277"; # nixos-unstable
3+
sha256 = "1zrvi9nal5hzqq87slcm8p6dsjqczrrzaqyxda8rcpa5lb0kl1ky";
44
}

nixpkgs.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
# See: https://nixos.wiki/wiki/How_to_fetch_Nixpkgs_with_an_empty_NIX_PATH
55

66
let
7-
fetchNixpkgs = import ./fetchNixpkgs.nix;
8-
97
nixpkgsVersion = import ./nixpkgs-version.nix;
108

11-
nixpkgs = fetchNixpkgs nixpkgsVersion;
9+
nixpkgs = builtins.fetchTarball {
10+
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsVersion.rev}.tar.gz";
11+
inherit (nixpkgsVersion) sha256;
12+
};
1213

1314
pkgs = import nixpkgs {};
1415

opencv-examples/opencv-examples.nix

Lines changed: 0 additions & 48 deletions
This file was deleted.

opencv-extra-examples/opencv-extra-examples.nix

Lines changed: 0 additions & 39 deletions
This file was deleted.

opencv-extra/opencv-extra.cabal

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
cabal-version: 2.2
12
name: opencv-extra
23
version: 0.2.0.1
34
homepage: https://github.com/LumiGuide/haskell-opencv
45
bug-reports: https://github.com/LumiGuide/haskell-opencv/issues
5-
license: BSD3
6+
license: BSD-3-Clause
67
license-file: LICENSE
78
author: Roel van Dijk <[email protected]>, Bas van Dijk <[email protected]>
89
maintainer: Roel van Dijk <[email protected]>, Bas van Dijk <[email protected]>
910
build-type: Custom
10-
cabal-version: >=1.23
1111
category: AI, Graphics
1212
synopsis: Haskell binding to OpenCV-3.x extra modules
1313
description: <<https://github.com/raw/LumiGuide/haskell-opencv/master/data/haskell-opencv-logo-200x82.png>>
@@ -75,8 +75,12 @@ library
7575
inline-c >= 0.6
7676
, inline-c-cpp >= 0.2.1
7777

78-
cc-options: -Wall -std=c++11
79-
ghc-options: -Wall -fwarn-incomplete-patterns -funbox-strict-fields -optc-std=c++11
78+
cxx-options: -std=c++11
79+
extra-libraries: stdc++
80+
pkgconfig-depends: opencv >= 3.0.0
81+
82+
ghc-options: -Wall -fwarn-incomplete-patterns -funbox-strict-fields
83+
8084
if flag(internal-documentation)
8185
cpp-options: -DENABLE_INTERNAL_DOCUMENTATION
8286

@@ -122,8 +126,6 @@ library
122126
TypeOperators
123127

124128
default-language: Haskell2010
125-
pkgconfig-depends: opencv >= 3.0.0
126-
extra-libraries: stdc++
127129

128130
test-suite doc-images-opencv-extra
129131
type: exitcode-stdio-1.0

opencv-extra/opencv-extra.nix

Lines changed: 0 additions & 92 deletions
This file was deleted.

opencv/opencv.cabal

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
cabal-version: 2.2
12
name: opencv
23
version: 0.0.2.1
34
homepage: https://github.com/LumiGuide/haskell-opencv
45
bug-reports: https://github.com/LumiGuide/haskell-opencv/issues
5-
license: BSD3
6+
license: BSD-3-Clause
67
license-file: LICENSE
78
author: Roel van Dijk <[email protected]>, Bas van Dijk <[email protected]>
89
maintainer: Roel van Dijk <[email protected]>, Bas van Dijk <[email protected]>
910
build-type: Custom
10-
cabal-version: >=1.23
1111
category: AI, Graphics
1212
synopsis: Haskell binding to OpenCV-3.x
1313
description: <<https://github.com/raw/LumiGuide/haskell-opencv/master/data/haskell-opencv-logo-200x82.png>>
@@ -107,8 +107,12 @@ library
107107
inline-c >= 0.6
108108
, inline-c-cpp >= 0.2.1
109109

110-
cc-options: -Wall -std=c++11
111-
ghc-options: -Wall -fwarn-incomplete-patterns -funbox-strict-fields -optc-std=c++11
110+
cxx-options: -std=c++11
111+
extra-libraries: stdc++
112+
pkgconfig-depends: opencv >= 3.0.0
113+
114+
ghc-options: -Wall -fwarn-incomplete-patterns -funbox-strict-fields
115+
112116
if flag(internal-documentation)
113117
cpp-options: -DENABLE_INTERNAL_DOCUMENTATION
114118

@@ -225,9 +229,7 @@ library
225229
TypeFamilies
226230
TypeOperators
227231

228-
default-language: Haskell2010
229-
pkgconfig-depends: opencv >= 3.0.0
230-
extra-libraries: stdc++
232+
default-language: Haskell2010
231233

232234
test-suite doc-images-opencv
233235
type: exitcode-stdio-1.0

0 commit comments

Comments
 (0)