-
Notifications
You must be signed in to change notification settings - Fork 29
Custom setups don't work #170
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
Comments
@lally Sometimes the generated packages won't have overrides set correctly. I'm not exactly sure why this is but I think it is a For instance, if you use $ cabal2nix cabal://proto-lens-protoc
{ mkDerivation, base, bytestring, containers, filepath
, haskell-src-exts, lens-family, pretty, proto-lens, protobuf
, stdenv, text
}:
mkDerivation {
pname = "proto-lens-protoc";
version = "0.5.0.0";
sha256 = "161dcee2aed780f62c01522c86afce61721cf89c0143f157efefb1bd1fa1d164";
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
base containers filepath haskell-src-exts lens-family pretty
proto-lens text
];
libraryToolDepends = [ protobuf ];
executableHaskellDepends = [
base bytestring containers lens-family proto-lens text
];
homepage = "https://github.com/google/proto-lens#readme";
description = "Protocol buffer compiler for the proto-lens library";
license = stdenv.lib.licenses.bsd3;
} However, if you look at "proto-lens-protoc" = callPackage
({ mkDerivation, base, bytestring, containers, filepath
, haskell-src-exts, lens-family, pretty, proto-lens, protobuf, text
}:
mkDerivation {
pname = "proto-lens-protoc";
version = "0.5.0.0";
sha256 = "0r6il4gvvcggxxbz2hq1kkw1qwk1rspqcb2j04ngd06pmvicw78n";
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
base containers filepath haskell-src-exts lens-family pretty
proto-lens text
];
libraryToolDepends = [ protobuf ];
executableHaskellDepends = [
base bytestring containers lens-family proto-lens text
];
description = "Protocol buffer compiler for the proto-lens library";
license = stdenv.lib.licenses.bsd3;
}) {inherit (pkgs) protobuf;}; You can see that the I think |
@cdepillabout First, thanks for answering. If I understand you correctly, the Ok, I can understand that. But it only brings up two more questions:
Thanks,
|
I believe you are using haskell.nix with nix-tools |
🤦♂️ they're different? Is this the one I should be using instead? |
@lally this (stack2nix) is the old one @domenkozar initially wrote. It reuses the existing haskell infrastructure in nixpkgs. haskell.nix \w nix-tools is the new infrastructure we wrote primarily to address short comings in performance, granularity and cross compilation capabilities of the haskell infrastructure in nixpkgs. At IOHK we almost exclusively use haskell.nix these days, except for legacy code. |
Custom setups in the .cabal file don't quite work right. As an example, projects using proto-lens won't find proto-lens-protoc, complain about it, and fail.
So perhaps a way to run then correctly, it at least documentation on how's to duplicate their functionality, would be quite useful.
The text was updated successfully, but these errors were encountered: