git.iko.soy/typeable/cabal2nix
on master help sign in
fromCabal: use isFreeLicense helper function to determine hydraPlatforms
090d734Peter Simons
src/Distribution/Nixpkgs/Haskell/FromCabal.hs+1−1
@@ -107,7 +107,7 @@ fromPackageDescription haskellResolver nixpkgsResolver missingDeps flags Package
107 & Nix.description .~ synopsis
107 & Nix.description .~ synopsis
108 & Nix.license .~ nixLicense
108 & Nix.license .~ nixLicense
109 & Nix.platforms .~ Nix.allKnownPlatforms
109 & Nix.platforms .~ Nix.allKnownPlatforms
110− & Nix.hydraPlatforms .~ (if nixLicense == Nix.Known "stdenv.lib.licenses.unfree" then Set.empty else Nix.allKnownPlatforms)
110+ & Nix.hydraPlatforms .~ (if isFreeLicense nixLicense then Nix.allKnownPlatforms else Set.empty)
111 & Nix.maintainers .~ mempty
111 & Nix.maintainers .~ mempty
112 & Nix.broken .~ not (null missingDeps)
112 & Nix.broken .~ not (null missingDeps)
113 )
113 )
test/golden-test-cases/ede.nix.golden+1
@@ -21,4 +21,5 @@ mkDerivation {
21 homepage = "http://github.com/brendanhay/ede";
21 homepage = "http://github.com/brendanhay/ede";
22 description = "Templating language with similar syntax and features to Liquid or Jinja2";
22 description = "Templating language with similar syntax and features to Liquid or Jinja2";
23 license = "unknown";
23 license = "unknown";
24+ hydraPlatforms = stdenv.lib.platforms.none;
24}
25}
test/golden-test-cases/gogol-adexchange-buyer.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Ad Exchange Buyer SDK";
8 description = "Google Ad Exchange Buyer SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-admin-emailmigration.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Email Migration API v2 SDK";
8 description = "Google Email Migration API v2 SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-affiliates.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Affiliate Network SDK";
8 description = "Google Affiliate Network SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-apps-tasks.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Tasks SDK";
8 description = "Google Tasks SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-appstate.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google App State SDK";
8 description = "Google App State SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-blogger.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Blogger SDK";
8 description = "Google Blogger SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-datastore.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Cloud Datastore SDK";
8 description = "Google Cloud Datastore SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-dfareporting.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google DCM/DFA Reporting And Trafficking SDK";
8 description = "Google DCM/DFA Reporting And Trafficking SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-firebase-rules.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Firebase Rules SDK";
8 description = "Google Firebase Rules SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-gmail.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Gmail SDK";
8 description = "Google Gmail SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-kgsearch.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Knowledge Graph Search SDK";
8 description = "Google Knowledge Graph Search SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-maps-engine.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Maps Engine SDK";
8 description = "Google Maps Engine SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-plus.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google + SDK";
8 description = "Google + SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-resourceviews.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Compute Engine Instance Groups SDK";
8 description = "Google Compute Engine Instance Groups SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-translate.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Translate SDK";
8 description = "Google Translate SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-webmaster-tools.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google Search Console SDK";
8 description = "Google Search Console SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/gogol-youtube.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "https://github.com/brendanhay/gogol";
7 homepage = "https://github.com/brendanhay/gogol";
8 description = "Google YouTube Data SDK";
8 description = "Google YouTube Data SDK";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/hxt-expat.nix.golden+1
@@ -7,4 +7,5 @@ mkDerivation {
7 homepage = "http://www.fh-wedel.de/~si/HXmlToolbox/index.html";
7 homepage = "http://www.fh-wedel.de/~si/HXmlToolbox/index.html";
8 description = "Expat parser for HXT";
8 description = "Expat parser for HXT";
9 license = "unknown";
9 license = "unknown";
10+ hydraPlatforms = stdenv.lib.platforms.none;
10}
11}
test/golden-test-cases/hxt-tagsoup.nix.golden+1
@@ -11,4 +11,5 @@ mkDerivation {
11 homepage = "https://github.com/UweSchmidt/hxt";
11 homepage = "https://github.com/UweSchmidt/hxt";
12 description = "TagSoup parser for HXT";
12 description = "TagSoup parser for HXT";
13 license = "unknown";
13 license = "unknown";
14+ hydraPlatforms = stdenv.lib.platforms.none;
14}
15}
test/golden-test-cases/openpgp-asciiarmor.nix.golden+1
@@ -15,4 +15,5 @@ mkDerivation {
15 homepage = "http://floss.scru.org/openpgp-asciiarmor";
15 homepage = "http://floss.scru.org/openpgp-asciiarmor";
16 description = "OpenPGP (RFC4880) ASCII Armor codec";
16 description = "OpenPGP (RFC4880) ASCII Armor codec";
17 license = "unknown";
17 license = "unknown";
18+ hydraPlatforms = stdenv.lib.platforms.none;
18}
19}
test/golden-test-cases/swagger.nix.golden+1
@@ -11,4 +11,5 @@ mkDerivation {
11 testHaskellDepends = [ aeson base bytestring tasty tasty-hunit ];
11 testHaskellDepends = [ aeson base bytestring tasty tasty-hunit ];
12 description = "Implementation of swagger data model";
12 description = "Implementation of swagger data model";
13 license = "unknown";
13 license = "unknown";
14+ hydraPlatforms = stdenv.lib.platforms.none;
14}
15}