btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / licensure / package.nix
blob97db16e1fcba633f3b7f17ab86d55f69a18354c2
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , pkg-config
6 , openssl
7 , git
8 , gitls
9 , darwin
11 rustPlatform.buildRustPackage rec {
12   pname = "licensure";
13   version = "0.5.1";
15   src = fetchFromGitHub {
16     owner = "chasinglogic";
17     repo = "licensure";
18     rev = version;
19     hash = "sha256-bo1bac/K8HMZaeLVYZRqYOS8p+62suGlgSyYz8Atj+0=";
20   };
22   cargoHash = "sha256-Ywfn+6qdKD9CG2/xdHR2XDsj5LF5XPJ2+XR5H1o2iXk=";
23   nativeBuildInputs = [ pkg-config ];
24   buildInputs = [ openssl git gitls ]
25     ++ lib.optionals stdenv.hostPlatform.isDarwin [
26     darwin.apple_sdk.frameworks.SystemConfiguration
27   ];
29   checkFlags = [
30     # Checking for files in the git repo (git ls-files),
31     # That obviously does not work with nix
32     "--skip=test_get_project_files"
33   ];
35   meta = with lib; {
36     description = "FOSS License management tool for your projects";
37     homepage = "https://github.com/chasinglogic/licensure";
38     license = licenses.gpl3Plus;
39     mainProgram = "licensure";
40     maintainers = [ maintainers.soispha ];
41     platforms = platforms.linux ++ platforms.darwin;
42   };