renamed the stripe client to smos-stripe-client

This commit is contained in:
Tom Sydney Kerckhove 2022-05-27 11:57:19 +02:00
parent ade53178e0
commit 39ce1aadd4
17 changed files with 25 additions and 26 deletions

2
.gitignore vendored
View File

@ -14,4 +14,4 @@ session.json
*:Zone.Identifier
.sass-cache/
*.css
stripe-client/
smos-stripe-client/

View File

@ -8,11 +8,10 @@ let
generateOpenAPIClient = import (sources.openapi-code-generator + "/nix/generate-client.nix") { pkgs = final; };
generatedStripe = generateOpenAPIClient {
name = "stripe-client";
name = "smos-stripe-client";
configFile = ../stripe-client-gen.yaml;
src = sources.stripe-spec + "/openapi/spec3.yaml";
};
generatedStripeCode = generatedStripe.code;
in
{
smosCasts =
@ -231,6 +230,7 @@ in
"smos-sync-client-gen" = smosPkg "smos-sync-client-gen";
"smos-github" = smosPkgWithOwnComp "smos-github";
"smos-notify" = smosPkgWithOwnComp "smos-notify";
"smos-stripe-client" = generatedStripe.package;
inherit smos-web-style;
} // optionalAttrs (!isMacos) {
# The 'thyme' dependency does not build on macos
@ -296,7 +296,7 @@ in
options = eval.options;
}).optionsJSON;
inherit generatedStripeCode;
generatedSmosStripeCode = generatedStripe.code;
haskellPackages =
previous.haskellPackages.override (
@ -342,7 +342,6 @@ in
dirforest = if isMacos then dontCheck super.dirforest else super.dirforest;
genvalidity-dirforest = if isMacos then dontCheck super.genvalidity-dirforest else super.genvalidity-dirforest;
cursor-dirforest = if isMacos then dontCheck super.cursor-dirforest else super.cursor-dirforest;
stripe-client = generatedStripe.package;
} // final.smosPackages
);
}

View File

@ -1,3 +1,3 @@
sudo rm -rf stripe-client
cp -rHL $(nix-build nix/pkgs.nix -A generatedStripeCode) stripe-client
sudo chmod -R +rwx stripe-client
sudo rm -rf smos-stripe-client
cp -rHL $(nix-build nix/pkgs.nix -A generatedSmosStripeCode) smos-stripe-client
sudo chmod -R +rwx smos-stripe-client

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.6.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.6.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -44,7 +44,7 @@ library:
- smos-api
- smos-data
- smos-report
- stripe-client
- smos-stripe-client
- template-haskell
- text
- time

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.6.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack
@ -97,7 +97,7 @@ library
, smos-api
, smos-data
, smos-report
, stripe-client
, smos-stripe-client
, template-haskell
, text
, time

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.6.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -46,10 +46,10 @@ library:
- shakespeare
- smos
- smos-client
- smos-stripe-client
- smos-sync-client
- smos-web-style
- stm
- stripe-client
- template-haskell
- text
- time

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack
@ -110,10 +110,10 @@ library
, shakespeare
, smos
, smos-client
, smos-stripe-client
, smos-sync-client
, smos-web-style
, stm
, stripe-client
, template-haskell
, text
, time

View File

@ -1,6 +1,6 @@
cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack

View File

@ -28,12 +28,12 @@ packages:
- smos-notify
- smos-github
- stripe-client
- smos-stripe-client
# These are duplicated in nix/overlay.
ghc-options:
"$locals": -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates -Wpartial-fields -Widentities -Wredundant-constraints -Wcpp-undef
stripe-client: -w # Turn off warnings for the generated code.
smos-stripe-client: -w # Turn off warnings for the generated code.
extra-deps:

View File

@ -1,5 +1,5 @@
outputDir: stripe-client
packageName: stripe-client
outputDir: smos-stripe-client
packageName: smos-stripe-client
moduleName: StripeClient
logLevel: INFO
force: true