From 94f1a4f1245f69359aa6b1136742a0bbac3ae249 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 30 Nov 2020 14:59:06 -0800 Subject: Add a license --- .envrc | 1 + LICENSE | 21 +++++++++++++++++++++ default.nix | 14 ++++++++++++++ shell.nix | 20 ++++++++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 .envrc create mode 100644 LICENSE create mode 100644 default.nix create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..be81fed --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +eval "$(lorri direnv)" \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dc7620a --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +ANTI-CAPITALIST SOFTWARE LICENSE (v 1.4) + +Copyright © 2020 Irene Knapp + +This is anti-capitalist software, released for free use by individuals and organizations that do not operate by capitalist principles. + +Permission is hereby granted, free of charge, to any person or organization (the "User") obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, distribute, and/or sell copies of the Software, subject to the following conditions: + +1. The above copyright notice and this permission notice shall be included in all copies or modified versions of the Software. + +2. The User is one of the following: +a. An individual person, laboring for themselves +b. A non-profit organization +c. An educational institution +d. An organization that seeks shared profit for all of its members, and allows non-members to set the cost of their labor + +3. If the User is an organization with owners, then all owners are workers and all workers are owners with equal equity and/or equal vote. + +4. If the User is an organization, then the User is not law enforcement or military, or working for or under either. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 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. diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..2ab3b66 --- /dev/null +++ b/default.nix @@ -0,0 +1,14 @@ +# Use `nix-build`, not `nix build`, when doing development on this file. It +# does a better job of propagating error messages from the build tools upward. + +let pkgs = import { }; + crateOverrides = pkgs.defaultCrateOverrides.override { + } // { }; + parameterOverrides = { }; + cargo = pkgs.callPackage ./Cargo.nix { + defaultCrateOverrides = crateOverrides; + }; +in +builtins.mapAttrs + (key: value: value.build.override parameterOverrides) + cargo.workspaceMembers diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..0860ad5 --- /dev/null +++ b/shell.nix @@ -0,0 +1,20 @@ +let + pkgs = import {}; + crate2nix-src = pkgs.fetchFromGitHub { + owner = "kolloch"; + repo = "crate2nix"; + rev = "0.8.0"; + sha256 = "17mmf5sqn0fmpqrf52icq92nf1sy5yacwx9vafk43piaq433ba56"; + }; + crate2nix = pkgs.callPackage (import crate2nix-src) { }; +in +pkgs.mkShell { + buildInputs = with pkgs; [ + cargo + cmake + crate2nix + go + pkgconfig + rustc + ]; +} -- cgit 1.4.1