Skip to content

LicenseRef-OtherLicense is not free = false #1006

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 2 commits into from
Jan 19, 2021
Merged

Conversation

hamishmack
Copy link
Collaborator

The dependent-map
package for instance is not clear on which free license applies to
which parts of the code, but that does not mean it is not free.

cabal2nix maps LicenseRef-OtherLicense to meta.license = "unknown"

cabal-to-nix and haskell.nix map it to a more detailed attribute
set but it includes free = false and that causes packages like
dependent-map to fail to install when allowUnfree has not been set.

This change removes the free attribute altogether, which seems more
principled than asserting that the OtherLicense cannot be free.

The [dependent-map](https://hackage.haskell.org/package/dependent-map)
package for instance is not clear on which free license applies to
which parts of the code, but that does not mean it is not free.

`cabal2nix` maps LicenseRef-OtherLicense to `meta.license = "unknown"`

`cabal-to-nix` and `haskell.nix` map it to a more detailed attribute
set but it includes `free = false` and that causes packages like
`dependent-map` to fail to install when `allowUnfree` has not been set.

This change removes the `free` attribute altogether, which seems more
principled than asserting that the `OtherLicense` cannot be `free`.
@hamishmack hamishmack requested a review from angerman January 19, 2021 10:48
@michaelpj
Copy link
Collaborator

Worth a comment in the code about why we don't set free one way or the other?

@hamishmack hamishmack merged commit 6e34587 into master Jan 19, 2021
@iohk-bors iohk-bors bot deleted the hkm/other-license branch January 19, 2021 11:27
deepfire added a commit to IntersectMBO/cardano-node that referenced this pull request Feb 3, 2021
deepfire added a commit to IntersectMBO/cardano-node that referenced this pull request Feb 3, 2021
deepfire added a commit to IntersectMBO/cardano-node that referenced this pull request Feb 3, 2021
deepfire added a commit to IntersectMBO/cardano-node that referenced this pull request Feb 3, 2021
iohk-bors bot added a commit to input-output-hk/cardano-benchmarking that referenced this pull request Feb 4, 2021
191: CA-2653:  Nix updates & cleanups r=deepfire a=deepfire

1. Drop some of the legacy code.
2. Bump node to 1.25.1+
3. Update Nix files to match the node
4. Bump `haskell.nix` to fix an eval issue (input-output-hk/haskell.nix#1006)

Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
Co-authored-by: Hamish Mackenzie <Hamish.K.Mackenzie@gmail.com>
iohk-bors bot added a commit to IntersectMBO/cardano-node that referenced this pull request Feb 4, 2021
2330: CAD-2653 haskell.nix:  bump to latest master r=deepfire a=deepfire

Bump `haskell.nix` to latest master, as input-output-hk/haskell.nix#1006 fixes the following error that pops up during evaluation sometimes:

```
Package ‘Crypto-lib-Crypto-4.2.5.1’ in /nix/store/dxjrqxbhrw005w4z8fd9iglcazlz1gdg-haskell.nix-src/builder/comp-builder.nix:297 has an unfree license (‘Other License’), refusing to evaluate.
```


Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
booniepepper pushed a commit to booniepepper/haskell.nix that referenced this pull request Feb 4, 2022
The [dependent-map](https://hackage.haskell.org/package/dependent-map)
package for instance is not clear on which free license applies to
which parts of the code, but that does not mean it is not free.

`cabal2nix` maps LicenseRef-OtherLicense to `meta.license = "unknown"`

`cabal-to-nix` and `haskell.nix` map it to a more detailed attribute
set but it includes `free = false` and that causes packages like
`dependent-map` to fail to install when `allowUnfree` has not been set.

This change removes the `free` attribute altogether, which seems more
principled than asserting that the `OtherLicense` cannot be `free`.
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