Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
/ microgram Public archive

Latest commit

 

History

History

haskell

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Packaging Haskell apps

Start with cabal2nix.

The workflow roughly looks like:

$ cabal2nix --sha256=ignoreme file:///path/to/package.cabal > ./my-app/default.nix
$ vim ./my-app/default.nix # remove sha256 stuff and add src reference:
#     src = git-repo-filter <my-app>;

# now add to the packages attrset:
   my-app = pkgs.haskellPackages.callPackage ./my-app {};

You'll have to double-check if the dependencies inferred by cabal2nix actually exist in your pkgs collection and if not, you have to repeat the procedure for it.