Skip to content

nixpkgs 20.09 pkg-config has a prefix #874

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

Merged
merged 8 commits into from
Oct 12, 2020

Conversation

hamishmack
Copy link
Collaborator

From nixpkgs 20.09, the pkg-config exe has a prefix matching the ghc one

From nixpkgs 20.09, the pkg-config exe has a prefix matching the ghc one
From nixpkgs 20.09, the pkg-config exe has a prefix matching the ghc one
@hamishmack hamishmack requested a review from michaelpj October 12, 2020 09:15
Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. I haven't really been following the way this stuff works in nixpkgs: is it really expected that every package manually prefixes these tools with the target prefix? That seems annoying...

@@ -91,12 +91,18 @@ let
"$(cat ${configFiles}/configure-flags)"
] ++ commonConfigureFlags);

# From nixpkgs 20.09, the pkg-config exe has a prefix matching the ghc one
pkgConfigHasPrefix = !(lib.strings.hasPrefix "19." lib.nixpkgsVersion
|| lib.strings.hasPrefix "20.03" lib.nixpkgsVersion);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we do one of those version comparison thingys we do elsewhere, e.g. versionLessThan "20.09"?

@hamishmack hamishmack merged commit ab2f5a9 into master Oct 12, 2020
@iohk-bors iohk-bors bot deleted the nixpkgs-2009-pkg-config-prefix branch October 12, 2020 10:41
mrBliss added a commit to IntersectMBO/ouroboros-network that referenced this pull request Oct 12, 2020
This will include the patch that was added in
input-output-hk/haskell.nix#874
to fix this issue:

```
Setup: The program 'pkg-config' version >=0.9.0 is required but it could not
be found.

builder for '/nix/store/16bf6j2f1fig368pi1yfv70x5njs8d6y-cardano-crypto-class-lib-cardano-crypto-class-2.0.0-x86_64-w64-mingw32.drv' failed with exit code 1
```
mrBliss added a commit to IntersectMBO/ouroboros-network that referenced this pull request Oct 12, 2020
This will include the patch that was added in
input-output-hk/haskell.nix#874
to fix this issue:

```
Setup: The program 'pkg-config' version >=0.9.0 is required but it could not
be found.

builder for '/nix/store/16bf6j2f1fig368pi1yfv70x5njs8d6y-cardano-crypto-class-lib-cardano-crypto-class-2.0.0-x86_64-w64-mingw32.drv' failed with exit code 1
```
mrBliss added a commit to IntersectMBO/ouroboros-network that referenced this pull request Oct 16, 2020
This will include the patch that was added in
input-output-hk/haskell.nix#874
to fix this issue:

```
Setup: The program 'pkg-config' version >=0.9.0 is required but it could not
be found.

builder for '/nix/store/16bf6j2f1fig368pi1yfv70x5njs8d6y-cardano-crypto-class-lib-cardano-crypto-class-2.0.0-x86_64-w64-mingw32.drv' failed with exit code 1
```
mrBliss added a commit to IntersectMBO/ouroboros-network that referenced this pull request Oct 16, 2020
This will include the patch that was added in
input-output-hk/haskell.nix#874
to fix this issue:

```
Setup: The program 'pkg-config' version >=0.9.0 is required but it could not
be found.

builder for '/nix/store/16bf6j2f1fig368pi1yfv70x5njs8d6y-cardano-crypto-class-lib-cardano-crypto-class-2.0.0-x86_64-w64-mingw32.drv' failed with exit code 1
```
booniepepper pushed a commit to booniepepper/haskell.nix that referenced this pull request Feb 4, 2022
From nixpkgs 20.09, the pkg-config exe has a prefix matching the ghc one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants