Skip to content

Commit da048a1

Browse files
Merge pull request #714 from alexfmpe/cabal-version
Bump cabal format version
2 parents aa4e16e + ff1ff8d commit da048a1

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

cabal2nix/cabal2nix.cabal

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cabal-version: 2.2
12
name: cabal2nix
23
version: 2.21.3
34
synopsis: Convert Cabal files into Nix build instructions.
@@ -6,7 +7,7 @@ description:
67
version by running:
78
.
89
> nix-env -i cabal2nix
9-
license: BSD3
10+
license: BSD-3-Clause
1011
license-file: LICENSE
1112
author: Peter Simons <simons@cryp.to>
1213
-- list all contributors: git log --pretty='%an' | sort | uniq
@@ -21,7 +22,6 @@ extra-doc-files: README.md
2122
CHANGELOG.md
2223
extra-source-files: test/golden-test-cases/*.cabal
2324
test/golden-test-cases/*.nix.golden
24-
cabal-version: 1.24
2525

2626
source-repository head
2727
type: git
@@ -47,6 +47,7 @@ library
4747
Distribution.Nixpkgs.Haskell.OrphanInstances
4848
Distribution.Nixpkgs.Haskell.PackageSourceSpec
4949
Distribution.Nixpkgs.Haskell.Platform
50+
autogen-modules: Paths_cabal2nix
5051
other-modules: Paths_cabal2nix
5152
hs-source-dirs: src
5253
build-depends: base > 4.11 && <5
@@ -94,6 +95,7 @@ executable cabal2nix
9495

9596
executable hackage2nix
9697
main-is: Main.hs
98+
autogen-modules: Paths_cabal2nix
9799
other-modules: HackageGit
98100
Paths_cabal2nix
99101
hs-source-dirs: hackage2nix
@@ -134,5 +136,5 @@ test-suite regression-test
134136
, tasty
135137
, tasty-golden
136138
default-language: Haskell2010
137-
build-tools: cabal2nix
139+
build-tool-depends: cabal2nix:cabal2nix
138140
ghc-options: -threaded -with-rtsopts=-K64K

distribution-nixpkgs/distribution-nixpkgs.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
cabal-version: 2.2
12
name: distribution-nixpkgs
23
version: 1.7.1.1
34
synopsis: Types and functions to manipulate the Nixpkgs distribution
45
description: Types and functions to represent, query, and manipulate the Nixpkgs distribution.
5-
license: BSD3
6+
license: BSD-3-Clause
67
license-file: LICENSE
78
author: Peter Simons <simons@cryp.to>
89
maintainer: sternenseemann <sternenseemann@systemli.org>
@@ -11,7 +12,6 @@ category: Distribution, Nix
1112
homepage: https://github.com/NixOS/cabal2nix/tree/master/distribution-nixpkgs#readme
1213
bug-reports: https://github.com/NixOS/cabal2nix/issues
1314
build-type: Simple
14-
cabal-version: 1.18
1515
data-files: derivation-attr-paths.nix
1616
extra-doc-files: CHANGELOG.md
1717
README.md
@@ -28,6 +28,7 @@ library
2828
Distribution.Nixpkgs.Meta
2929
Distribution.Nixpkgs.PackageMap
3030
Language.Nix.PrettyPrinting
31+
autogen-modules: Paths_distribution_nixpkgs
3132
other-modules: Paths_distribution_nixpkgs
3233
hs-source-dirs: src
3334
build-depends: base > 4.2 && < 5

hackage-db/hackage-db.cabal

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
cabal-version: 2.2
12
name: hackage-db
23
version: 2.1.3
34
synopsis: Access cabal-install's Hackage database via Data.Map
45
description: This library provides convenient access to the local copy of the Hackage
56
database that \"cabal update\" creates. Check out
67
<https://github.com/NixOS/hackage-db/tree/master/example/> for a collection
78
of simple example programs that demonstrate how to use this code.
8-
license: BSD3
9+
license: BSD-3-Clause
910
license-file: LICENSE
1011
author: Peter Simons, Alexander Altman, Ben James, Kevin Quick
1112
maintainer: sternenseemann <sternenseemann@systemli.org>
@@ -14,7 +15,6 @@ category: Distribution
1415
homepage: https://github.com/NixOS/cabal2nix/tree/master/hackage-db#readme
1516
bug-reports: https://github.com/NixOS/cabal2nix/issues
1617
build-type: Simple
17-
cabal-version: 1.18
1818
extra-doc-files: README.md
1919
CHANGELOG.md
2020

@@ -36,7 +36,6 @@ library
3636
Distribution.Hackage.DB.Path
3737
Distribution.Hackage.DB.Unparsed
3838
Distribution.Hackage.DB.Utility
39-
other-modules: Paths_hackage_db
4039
hs-source-dirs: src
4140
build-depends: base >= 4.9 && < 5
4241
, Cabal >= 3.4

language-nix/language-nix.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
cabal-version: 2.2
12
name: language-nix
23
version: 2.3.0
34
synopsis: Data types and functions to represent the Nix language
45
description: Data types and useful functions to represent and manipulate the Nix
56
language.
6-
license: BSD3
7+
license: BSD-3-Clause
78
license-file: LICENSE
89
author: Peter Simons
910
maintainer: simons@cryp.to
@@ -12,7 +13,6 @@ category: Distribution, Language, Nix
1213
homepage: https://github.com/NixOS/cabal2nix/tree/master/language-nix#readme
1314
bug-reports: https://github.com/NixOS/cabal2nix/issues
1415
build-type: Simple
15-
cabal-version: 1.18
1616
extra-doc-files: README.md
1717
CHANGELOG.md
1818

0 commit comments

Comments
 (0)