Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color-scheme-generator: init at 0.9.2.1 #362977

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions pkgs/by-name/co/color-scheme-generator/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
rustPlatform,
fetchFromGitHub,
lib,
perl,
}:

rustPlatform.buildRustPackage rec {
pname = "color-scheme-generator";
version = "0.9.2.1";

src = fetchFromGitHub {
owner = "nikolaizombie1";
repo = "color_scheme_generator";
rev = "v${version}";
nikolaizombie1 marked this conversation as resolved.
Show resolved Hide resolved
hash = "sha256-tSoM6MP58vOoKRMQjNq8nKMiVTfS9N/mckchAPcUM0g=";
};

cargoHash = "sha256-A8ld2c8ZcqaZN29Fz085FQy8UpugIDMOKT01r+SfCcc=";

nativeBuildInputs = [ perl ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we need this because the crates are trying to vendor a version of openssl and sqlite. We can avoid rebuilding these by forcing it to use the libraries already in Nixpkgs

Suggested change
nativeBuildInputs = [ perl ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
sqlite
];
env = {
OPENSSL_NO_VENDOR = 1;
};


meta = with lib; {
nikolaizombie1 marked this conversation as resolved.
Show resolved Hide resolved
description = "Quickly generate color schemes for waybar from an image.";
longDescription = ''
color_scheme_generator is a command line utility used to analyze images and generate color themes from them given a path to an image.

This command line utility behaves like a standard UNIX utility where the path to the image can be either piped in or sent a command line argument.

The intended purpose of this application is to automatically create color themes for Waybar, but it can be used for the bar in AwesomeWM or other applications to theme based on the on an image. This utility has a cache for the image analysis. This means that once an image has been analyzed once, the result will be saved in the cache and when an image is analyzed again, the results will be returned instantly

'';
homepage = "https://github.com/nikolaizombie1/color_scheme_generator";
license = licenses.gpl3;
maintainers = [
{
name = "Fabio J. Matos Nieves";
email = "[email protected]";
githubId = "70602908";
github = "nikolaizombie1";
}
];
nikolaizombie1 marked this conversation as resolved.
Show resolved Hide resolved
};
}
Loading