aboutsummaryrefslogtreecommitdiff
path: root/licentia/source/program/licentia/license/commercial.lux
blob: ac70ac3922d06ee9408cb95da9b8cec94252bde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   [data
    ["[0]" text
     ["%" \\format (.only format)]]]]]
 ["[0]" // (.only Commercial)
  ["_" term]
  [//
   ["$" document]]])

(def .public cannot_sell
  (let [preamble (format "Without limiting other conditions in " _.license)
        direct_condition (format "the grant of rights under " _.license
                                 " will not include, and does not grant to " _.recipient
                                 ", the right to " _.sell " " _.licensed_work)
        derivative_condition (format "or any " _.derivative_work)]
    ($.sentence (format preamble
                        ", " direct_condition
                        ", " derivative_condition))))

(def .public require_contributor_attribution
  ($.sentence (format "All advertising materials mentioning features or use of " _.licensed_work
                      " must include an acknowledgement of the authorship of every " _.contributor)))

(def .public disallow_contributor_endorsement
  (let [subject (format "The name of no " _.contributor)
        capability "endorse or promote products"
        source (format "any " _.extension)
        condition "specific prior written permission"]
    ($.sentence (format subject " may be used to " capability " derived from " source " without " condition))))