Skip to content

Commit

Permalink
More work on metadata and files
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 26, 2024
1 parent 26c8e3c commit c1fcb48
Show file tree
Hide file tree
Showing 30 changed files with 62 additions and 141 deletions.
17 changes: 17 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,26 @@
PACKAGE_VERSION="${builtins.replaceStrings ["_"] ["."] (builtins.substring 1 (-1) dir)}.${toString versionSuffix}"
${pkgs.gnused}/bin/sed -i "s/^version:\s*\(.*\)/version: $PACKAGE_VERSION/" "${dir}/docker-engine.cabal"
# Fill in license
# https://docs.docker.com/engine/#licensing
${pkgs.gnused}/bin/sed -i "s/^license:\s*\(.*\)/license: Apache-2.0/" "${dir}/docker-engine.cabal"
# Fill in other metadata
${pkgs.gnused}/bin/sed -i "s/^author:\s*\(.*\)/author: Tom McLaughlin <[email protected]>/" "${dir}/docker-engine.cabal"
${pkgs.gnused}/bin/sed -i "s/^maintainer:\s*\(.*\)/maintainer: Tom McLaughlin <[email protected]>/" "${dir}/docker-engine.cabal"
${pkgs.gnused}/bin/sed -i "s/^homepage:\s*\(.*\)/homepage: https:\/\/github.com\/codedownio\/docker-engine/" "${dir}/docker-engine.cabal"
${pkgs.gnused}/bin/sed -i '/copyright:/d' "${dir}/docker-engine.cabal"
# Remove some unnecessary files
rm "${dir}/openapi.yaml"
rm "${dir}/.travis.yml"
rm "${dir}/stack.yaml"
# Delete openapi.yaml from the extra-source-files
${pkgs.gnused}/bin/sed -i '/^\s*openapi\.yaml$/d' "${dir}/docker-engine.cabal"
# Patch up some problems
echo "type Map = A.Object" >> "${dir}/lib/DockerEngine/Model.hs"
'';

in
Expand Down
10 changes: 4 additions & 6 deletions v1.36/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.36/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9652,3 +9652,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.36/stack.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions v1.36/stack.yaml.lock

This file was deleted.

10 changes: 4 additions & 6 deletions v1.37/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.37/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9663,3 +9663,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.37/stack.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions v1.38/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.38/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9772,3 +9772,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.38/stack.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions v1.39/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.39/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10194,3 +10194,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.39/stack.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions v1.40/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.40/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10382,3 +10382,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.40/stack.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions v1.41/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.41/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10756,3 +10756,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.41/stack.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions v1.42/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.42/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11282,3 +11282,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.42/stack.yaml

This file was deleted.

10 changes: 4 additions & 6 deletions v1.43/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.43/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11315,3 +11315,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.43/stack.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions v1.43/stack.yaml.lock

This file was deleted.

10 changes: 4 additions & 6 deletions v1.44/docker-engine.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ description: .
Generator version: 7.6.0
.
category: Web
homepage: https://openapi-generator.tech
author: Author Name Here
maintainer: [email protected]
copyright: YEAR - AUTHOR
license: UnspecifiedLicense
homepage: https://github.com/codedownio/docker-engine
author: Tom McLaughlin <[email protected]>
maintainer: Tom McLaughlin <[email protected]>
license: Apache-2.0
build-type: Simple
cabal-version: >= 1.10

extra-source-files:
README.md
openapi.yaml

Flag UseKatip
Description: Use the katip package to provide logging (if false, use the default monad-logger package)
Expand Down
1 change: 1 addition & 0 deletions v1.44/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11506,3 +11506,4 @@ toTaskState = \case



type Map = A.Object
7 changes: 0 additions & 7 deletions v1.44/stack.yaml

This file was deleted.

0 comments on commit c1fcb48

Please sign in to comment.