streamline unfree licensing
This commit is contained in:
parent
b6248a7c20
commit
56ff602212
13
flake.nix
13
flake.nix
|
@ -105,6 +105,14 @@
|
|||
defaultText = lib.literalExpression "true";
|
||||
example = lib.literalExpression "false";
|
||||
};
|
||||
|
||||
possiblyCommitCrimes = lib.mkOption {
|
||||
description = "Globally enable usage of packages marked as FYPTL";
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
defaultText = lib.literalExpression "false";
|
||||
example = lib.literalExpression "false";
|
||||
};
|
||||
};
|
||||
|
||||
config.nix.registry.dragnpkgs-unstable =
|
||||
|
@ -123,6 +131,11 @@
|
|||
config.nix.nixPath = lib.mkIf config.dragnpkgs.setNixPath [
|
||||
self.meta.path-entry
|
||||
];
|
||||
|
||||
# TODO: also enable this for user-level nix, somehow
|
||||
config.nixpkgs.config = lib.mkIf config.dragnpkgs.possiblyCommitCrimes {
|
||||
allowlistedLicenses = lib.licenses.fyptl;
|
||||
};
|
||||
})
|
||||
|
||||
(import ./module.nix)
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
The Fuck You, Pirate This License (FYPTL)
|
||||
---
|
||||
|
||||
Copyright (c) 2024 xenia <xenia@awoo.systems>. All Rights Reserved.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software IS NOT granted
|
||||
for any purpose. Performing any such actions in connection with this software
|
||||
may constitute copyright infringement, and the copyright holder(s) may pursue
|
||||
any remedies for such infringement in accordance with applicable law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
shortName = "FYPTL";
|
||||
fullName = "Fuck You, Pirate This License";
|
||||
deprecated = false;
|
||||
free = false;
|
||||
redistributable = false;
|
||||
url = "https://git.lain.faith/haskal/dragnpkgs/src/branch/main/lib/licenses/FYPTL";
|
||||
}
|
|
@ -1,4 +1,8 @@
|
|||
final: prev: {
|
||||
lib = prev.lib.extend (lfinal: lprev: {
|
||||
licenses = lprev.licenses // { fyptl = import ./lib/licenses/fyptl.nix; };
|
||||
});
|
||||
|
||||
fetchFromSteam = prev.callPackage ./lib/fetchsteam {};
|
||||
fetchb4 = prev.callPackage ./lib/fetchb4 {};
|
||||
|
||||
|
@ -36,7 +40,7 @@ final: prev: {
|
|||
|
||||
mkNginxServer = prev.callPackage ./lib/dev-nginx {};
|
||||
|
||||
zbasefind = prev.callPackage ./pkgs/rust/zbasefind {};
|
||||
zbasefind = final.callPackage ./pkgs/rust/zbasefind {};
|
||||
|
||||
eta = prev.callPackage ./pkgs/cmdline/eta {};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
fetchgit,
|
||||
buildDunePackage,
|
||||
|
||||
|
@ -30,14 +31,7 @@ buildDunePackage rec {
|
|||
meta = {
|
||||
description = "";
|
||||
homepage = "https://git.lain.faith/haskal/systemd-ml";
|
||||
license = {
|
||||
shortName = "fyptl";
|
||||
fullName = "fuck you pirate this license";
|
||||
deprecated = false;
|
||||
free = false;
|
||||
redistributable = false;
|
||||
url = "data:text/html,<h1>fuck you pirate this</h1>";
|
||||
};
|
||||
license = lib.licenses.fyptl;
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,15 +17,7 @@ rustPlatform.buildRustPackage rec {
|
|||
meta = {
|
||||
description = "A firmware base address search tool";
|
||||
homepage = "https://git.lain.faith/haskal/zbasefind";
|
||||
license = {
|
||||
shortName = "fyptl";
|
||||
fullName = "fuck you pirate this license";
|
||||
deprecated = false;
|
||||
free = false;
|
||||
redistributable = false;
|
||||
url = "data:text/html,<h1>fuck you pirate this</h1>";
|
||||
};
|
||||
|
||||
license = lib.licenses.fyptl;
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue