depot/pkgs/by-name/ge/gen-license/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
774 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "gen-license";
version = "0.1.4";
src = fetchFromGitHub {
owner = "nexxeln";
repo = "license-generator";
rev = "${version}";
hash = "sha256-VOmt8JXd2+ykhkhupv/I4RfXz9P0eEesW3JGAoXStUI=";
};
cargoHash = "sha256-TEsWACxEs4eJ8rO4RnKJWpwT1KcDoBEGftHSJt4YXVw=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Create licenses for your projects right from your terminal";
mainProgram = "gen-license";
homepage = "https://github.com/nexxeln/license-generator";
license = licenses.mit;
maintainers = [ maintainers.ryanccn ];
};
}