depot/third_party/nixpkgs/pkgs/by-name/ma/matugen/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
850 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "matugen";
version = "2.3.0";
src = fetchFromGitHub {
owner = "InioX";
repo = "matugen";
rev = "v${version}";
hash = "sha256-WFitpFF1Ah4HkzSe4H4aN/ZM0EEIcP5ozLMUWaDggFU=";
};
cargoHash = "sha256-pD1NKUJmvMTnYKWjRrGnvbA0zVvGpWRIlf/9ovP9Jq4=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
meta = with lib; {
description = "Material you color generation tool";
homepage = "https://github.com/InioX/matugen";
changelog = "https://github.com/InioX/matugen/blob/${src.rev}/CHANGELOG.md";
license = licenses.gpl2Only;
maintainers = with maintainers; [ lampros ];
mainProgram = "matugen";
};
}