license as AGPL

This commit is contained in:
Sebastian Hugentobler 2024-05-06 19:33:58 +02:00
parent 06e8ae3554
commit ab937d0201
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
7 changed files with 946 additions and 45 deletions

View file

@ -1,5 +1,5 @@
{
description = "rusty-cops project";
description = "rusty-library project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
@ -75,6 +75,7 @@
devShells.default = pkgs.mkShell {
buildInputs = [
rust.toolchain
pkgs.cargo-deny
pkgs.rust-analyzer
];
};
@ -114,14 +115,10 @@
// rec {
src = ./.;
strictDeps = true;
doCheck = false;
doCheck = true;
nativeBuildInputs = [ pkgs.cargo-deny ];
cargoTestCommands = (default: default ++ [ "cargo deny check ban bans license licenses sources" ]);
OPENSSL_STATIC = "1";
OPENSSL_LIB_DIR = "${pkgsCross.pkgsStatic.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgsCross.pkgsStatic.openssl.dev}/include";
# Required because ring crate is special. This also seems to have
# fixed some issues with the x86_64-windows cross-compile :shrug:
TARGET_CC = "${pkgsCross.stdenv.cc}/bin/${pkgsCross.stdenv.cc.targetPrefix}cc";
CARGO_BUILD_TARGET = rustTarget;
@ -129,11 +126,6 @@
"-C"
"target-feature=+crt-static"
# -latomic is required to build openssl-sys for armv6l-linux, but
# it doesn't seem to hurt any other builds.
# "-C"
# "link-args=-static -latomic"
"-C"
"linker=${TARGET_CC}"
];