aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/licentia/license/commercial.lux
blob: 37b2e2d749fb4ac95c000025d702cd11a99d5d77 (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
(.module:
  [lux #*
   [data
    ["." text
     format]
    [collection
     ["." list ("#/." monoid)]]]]
  ["." // (#+ Commercial)
   ["_" term]
   [//
    ["$" document]]])

(def: #export cannot-sell
  (let [preamble (format "Without limiting other conditions in " _.license)
        condition (format "the grant of rights under " _.license
                          " will not include, and " _.license
                          " does not grant to " _.recipient
                          ", the right to " _.sell " " _.work)]
    ($.sentence (format preamble ", " condition))))

(def: #export require-contributor-attribution
  ($.sentence (format "All advertising materials mentioning features or use of " _.work
                      " must include an acknowledgement of the authorship of every " _.contributor)))

(def: #export 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))))