Skip to content

Commit

Permalink
Moved migrate binary to ihp-migrate package
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed May 21, 2024
1 parent 1d6c7e7 commit de021bb
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 7 deletions.
12 changes: 12 additions & 0 deletions NixSupport/haskell-packages/ihp-migrate.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ mkDerivation, ihp, lib, with-utf8_1_1_0_0 }:
mkDerivation {
pname = "ihp-migrate";
version = "1.3.0";
src = ./../../ihp-migrate;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ ihp with-utf8_1_1_0_0 ];
description = "Provides the IHP migrate binary";
license = lib.licenses.mit;
mainProgram = "migrate";
}
3 changes: 2 additions & 1 deletion devenv-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ that is defined in flake-module.nix

apps.migrate = {
type = "app";
program = "${ghcCompiler.ihp}/bin/migrate";
program = "${ghcCompiler.ihp-migrate}/bin/migrate";
};

devenv.shells.default = {
Expand Down Expand Up @@ -118,6 +118,7 @@ that is defined in flake-module.nix
default = ghcCompiler.ihp;
ide = ghcCompiler.ihp-ide;
ssc = ghcCompiler.ihp-ssc;
migrate = ghcCompiler.ihp-migrate;
};
};
}
6 changes: 0 additions & 6 deletions ihp-ide/ihp-ide.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,6 @@ executable new-migration
hs-source-dirs: exe
main-is: IHP/CLI/NewMigration.hs

executable migrate
import: shared-properties
build-depends: ihp, ihp-ide
hs-source-dirs: exe
main-is: IHP/CLI/Migrate.hs

executable hash-password
import: shared-properties
build-depends: ihp, ihp-ide
Expand Down
File renamed without changes.
50 changes: 50 additions & 0 deletions ihp-migrate/ihp-migrate.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
cabal-version: 2.2
name: ihp-migrate
version: 1.3.0
synopsis: Provides the IHP migrate binary
description: Postgres DB migrations
license: MIT
author: digitally induced GmbH
maintainer: support@digitallyinduced.com
bug-reports: https://github.com/digitallyinduced/ihp/issues
category: Database
build-type: Simple

executable migrate
default-extensions:
OverloadedStrings
, NoImplicitPrelude
, ImplicitParams
, Rank2Types
, NamedFieldPuns
, TypeSynonymInstances
, FlexibleInstances
, DisambiguateRecordFields
, DuplicateRecordFields
, OverloadedLabels
, FlexibleContexts
, DataKinds
, QuasiQuotes
, TypeFamilies
, PackageImports
, ScopedTypeVariables
, RecordWildCards
, TypeApplications
, DataKinds
, InstanceSigs
, DeriveGeneric
, MultiParamTypeClasses
, TypeOperators
, DeriveDataTypeable
, DefaultSignatures
, BangPatterns
, FunctionalDependencies
, PartialTypeSignatures
, BlockArguments
, LambdaCase
, StandaloneDeriving
, TemplateHaskell
, OverloadedRecordDot
build-depends: ihp, with-utf8
hs-source-dirs: .
main-is: Migrate.hs

0 comments on commit de021bb

Please sign in to comment.