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
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15892,6 +15892,12 @@
github = "NiklasVousten";
githubId = 24965952;
};
nikolaizombie1 = {
name = "Fabio J. Matos Nieves";
email = "[email protected]";
githubId = 70602908;
github = "nikolaizombie1";
};
nikstur = {
email = "[email protected]";
name = "nikstur";
Expand Down
37 changes: 37 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,37 @@
{
rustPlatform,
fetchFromGitHub,
lib,
perl,
}:

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

src = fetchFromGitHub {
owner = "nikolaizombie1";
repo = "color_scheme_generator";
tag = "v${version}";
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 = {
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 = with lib.licenses; [ gpl3 ];
maintainers = with lib.maintainers; [ nikolaizombie1 ];
};
}
Loading