Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{ runCommand, fetchzip, cabal2nix }:
let
package-src = runCommand "package-src" {
src = fetchzip {
url = "...zip";
sha256 = "...";
};
buildInputs = [ cabal2nix ];
}
''
mkdir -p $out
cp -r $src/* $out
cd $out
cabal2nix . > package.nix
'';
in pkgs.haskellPackages.callPackage "${package-src}/package.nix" {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment