fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
34 lines
852 B
Nix
34 lines
852 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 = "A 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";
|
|
};
|
|
}
|