Skip to content

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...


# 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.

3 participants