Skip to content

Commit

Permalink
Recognize the CC0-1.0 license properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
peti committed Mar 29, 2018
1 parent ebc40be commit 5b271ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Distribution/Nixpkgs/Haskell/FromCabal/License.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ fromCabalLicense (Apache Nothing) = Known "stdenv.lib.l
fromCabalLicense (Apache (Just (versionNumbers -> [2,0]))) = Known "stdenv.lib.licenses.asl20"
fromCabalLicense ISC = Known "stdenv.lib.licenses.isc"
fromCabalLicense OtherLicense = Unknown Nothing
fromCabalLicense (UnknownLicense "CC0-1.0") = Known "stdenv.lib.licenses.cc0"
fromCabalLicense l = error $ "Distribution.Nixpkgs.Haskell.FromCabal.License.fromCabalLicense: unknown license"
++ show l ++"\nChoose one of: " ++ intercalate ", " (map display knownLicenses)

0 comments on commit 5b271ab

Please sign in to comment.