Browse Source

Improve licensing

Signed-off-by: Magic_RB <magic_rb@redalder.org>
master
Magic_RB 2 weeks ago
parent
commit
1dafef6a98
Signed by: Magic_RB GPG Key ID: 08D5287CC5DDCA0E
2 changed files with 36 additions and 0 deletions
  1. +20
    -0
      COPYING.NIXOS-MIT
  2. +16
    -0
      modules/services/hydra.nix

+ 20
- 0
COPYING.NIXOS-MIT View File

@ -0,0 +1,20 @@
Copyright (c) 2003-2021 Eelco Dolstra and the Nixpkgs/NixOS contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 16
- 0
modules/services/hydra.nix View File

@ -3,6 +3,11 @@ with lib;
let
cfg = config.services.hydra;
# ========================================================================
# -- BEGIN MIT LICENSED CODE
# ========================================================================
# For the license please refer to COPYING.NIXOS-MIT
baseDir = "/var/lib/hydra";
hydraEnv =
@ -60,6 +65,9 @@ let
done
'';
};
# ========================================================================
# -- END MIT LICENSED CODE
# ========================================================================
parser =
let
@ -87,6 +95,11 @@ in
options.services.hydra = {
enable = mkEnableOption "Enable HydraCI";
# ========================================================================
# -- BEGIN MIT LICENSED CODE
# ========================================================================
# For the license please refer to COPYING.NIXOS-MIT
package = mkOption {
type = types.package;
default = pkgs.hydra-unstable;
@ -206,6 +219,9 @@ in
are absolute trustworthy.
'';
};
# ========================================================================
# -- END MIT LICENSED CODE
# ========================================================================
dbiFile = mkOption {
type = with types; nullOr str;


Loading…
Cancel
Save