2025-07-26 11:39:35 +02:00

44 lines
974 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
git,
gitls,
}:
rustPlatform.buildRustPackage rec {
pname = "licensure";
version = "0.8.0";
src = fetchFromGitHub {
owner = "chasinglogic";
repo = "licensure";
rev = version;
hash = "sha256-3kZzYDKMLRdYzxa9+wVeTFJk186MJZfGfzRXgY9tI4Y=";
};
cargoHash = "sha256-b3Vb8beULbLQuBORcE5nWuHkqDmalexJick9Ct5+iUM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
git
gitls
];
checkFlags = [
# Checking for files in the git repo (git ls-files),
# That obviously does not work with nix
"--skip=test_get_project_files"
];
meta = with lib; {
description = "FOSS License management tool for your projects";
homepage = "https://github.com/chasinglogic/licensure";
license = licenses.gpl3Plus;
mainProgram = "licensure";
maintainers = [ maintainers.bpeetz ];
platforms = platforms.linux ++ platforms.darwin;
};
}