-
Notifications
You must be signed in to change notification settings - Fork 189
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
How to use github repo as dependency? #1946
Comments
ildar-shaymukhametov
changed the title
Add ability to use github repo as dependency
How to use github repo as dependency?
Apr 8, 2024
You can follow most of the guide here https://ihp.digitallyinduced.com/Guide/package-management.html#using-a-different-version-of-a-haskell-package and use Here's an example: # Config/nix/haskell-packages/currencies.nix
{ mkDerivation, base, hspec, lib, text, fetchFromGitHub }:
mkDerivation {
pname = "currencies";
version = "0.2.0.0";
libraryHaskellDepends = [ base text ];
testHaskellDepends = [ base hspec text ];
homepage = "https://github.com/alx741/currencies#readme";
description = "Currencies representation, pretty printing and conversion";
license = lib.licenses.bsd3;
src = fetchFromGitHub {
owner = "alx741";
repo = "currencies";
rev = "99f5bde00814510aa5993940ffc179f543bdb3cd";
sha256 = "sha256-B0Ah0If3qRaN8c4Ygh6ayzigfB8fgXjaO+1bPWItBcI=";
};
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a simple haskell stack repo
I want to use it's Lib module as a dependency for my another project (made with this template: https://github.com/rvarun11/codespaces-ihp)
How can I do this?
Also tried this: https://cabal.readthedocs.io/en/3.4/cabal-project.html#specifying-packages-from-remote-version-control-locations, it even installed pf2e and it's deps; I added pf2e to App.cabal, but got error "Module not found"
The text was updated successfully, but these errors were encountered: