Skip to content

Fix hix support for github #1627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2022
Merged

Fix hix support for github #1627

merged 1 commit into from
Aug 30, 2022

Conversation

hamishmack
Copy link
Collaborator

With this change we can build and run the latest cabal from github using haskell.nix with:

hix run github:haskell/cabal#cabal-install:exe:cabal -- --version

You can install it in your profile with:

hix profile install github:haskell/cabal#cabal-install:exe:cabal

Because the flake.nix file is stored in $HOME/.hix/github:haskell/cabal we can lock it with:

hix flake lock github:haskell/cabal

With this change we can build and run the latest `cabal` from github using haskell.nix with:

```
hix run github:haskell/cabal#cabal-install:exe:cabal -- --version
```

You can install it in your profile with:

```
hix profile install github:haskell/cabal#cabal-install:exe:cabal
```

Because the `flake.nix` file is stored in `$HOME/.hix/github:haskell/cabal` we can lock it with:

```
hix flake lock github:haskell/cabal
```
@hamishmack hamishmack requested a review from yvan-sraka August 30, 2022 01:24
Copy link
Contributor

@yvan-sraka yvan-sraka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! And what's nice is that should fix #1601!

nix log /nix/store/pp2fn3rs39jj721j12sfwsnkkks4pyjb-haskell-project-plan-to-nix-pkgs.drv
Using index-state 2022-08-29T00:00:00Z
No cabal.project file or cabal file matching the default glob './*.cabal' was found.
Please create a package description file <pkgname>.cabal or a cabal.project file referencing the package>

@yvan-sraka yvan-sraka merged commit a94fc19 into master Aug 30, 2022
@iohk-bors iohk-bors bot deleted the hkm/hix-github-flake branch August 30, 2022 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants