Git Product home page Git Product logo

Comments (2)

mpscholten avatar mpscholten commented on June 14, 2024 1

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 cabal2nix to create a nix file for your custom package. Then adjust the generated nix file to fetch from github.

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=";
  };
}

from ihp.

ildar-shaymukhametov avatar ildar-shaymukhametov commented on June 14, 2024

I could not make it work
I am trying another way: I have it build and put in a local folder
But still it does not work (flake.lock does not reflect any changes)
image
How to make it work?

from ihp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.