Skip to content

Commit

Permalink
Move to newer Haskell packageset (#80)
Browse files Browse the repository at this point in the history
* Move to newer Haskell packageset

* Formatting
  • Loading branch information
utdemir authored Jan 16, 2024
1 parent 952c818 commit dd0b499
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# Temporary until `haskell-updates` is merged. Move it back to `nixpkgs-unstable` once it is.
nixpkgs.url = "github:nixos/nixpkgs/haskell-updates";
flake-utils.url = "github:numtide/flake-utils/main";
flake-compat = {
url = "github:edolstra/flake-compat/master";
Expand Down
2 changes: 1 addition & 1 deletion nix-tree.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ common common-options
build-depends: base
, relude
, aeson
, brick >= 1 && < 2
, brick >= 2.1 && < 2.4
, bytestring
, containers
, clock
Expand Down
4 changes: 1 addition & 3 deletions src/NixTree/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ run env = do
return ()

-- And run the application
let mkVty = V.mkVty V.defaultConfig
initialVty <- mkVty
_ <- B.customMain initialVty mkVty (Just chan) app appEnv
_ <- B.customMainWithDefaultVty (Just chan) app appEnv

return ()

Expand Down
12 changes: 8 additions & 4 deletions src/NixTree/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ optsParser =
( Opts.metavar "INSTALLABLE"
<> Opts.helpDoc
( Just $
"A store path or a flake reference."
Opts.<$$> "Paths default to \"~/.nix-profile\" and \"/var/run/current-system\""
Opts.vsep
[ "A store path or a flake reference.",
"Paths default to \"~/.nix-profile\" and \"/var/run/current-system\""
]
)
)
)
Expand All @@ -53,8 +55,10 @@ optsParser =

keybindingsHelp :: Opts.Doc
keybindingsHelp =
"Keybindings:"
Opts.<$$> (Opts.indent 2 . Opts.vsep $ map (Opts.text . toString) (lines helpText))
Opts.vsep
[ "Keybindings:",
Opts.indent 2 . Opts.vsep $ map Opts.pretty (lines helpText)
]

showAndFail :: Text -> IO a
showAndFail msg = do
Expand Down

0 comments on commit dd0b499

Please sign in to comment.