Unverified Commit a5593382 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

tint: init at 0.1.6 (#415360)

parents 2f9ca883 52a4cdae
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2227,6 +2227,12 @@
    githubId = 104313094;
    name = "Andrey Shaat";
  };
  ashish0kumar = {
    email = "ashishkumar901336@gmail.com";
    github = "ashish0kumar";
    githubId = 143941235;
    name = "Ashish Kumar";
  };
  ashley = {
    email = "ashley@kira64.xyz";
    github = "kira64xyz";
+40 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  versionCheckHook,
}:

buildGoModule rec {
  pname = "tint";
  version = "0.1.6";

  src = fetchFromGitHub {
    owner = "ashish0kumar";
    repo = "tint";
    tag = "v${version}";
    hash = "sha256-TZYAcs6h4Fv0XpUqzgCcAF5cHGaVKMMCJ6MTAH6C6Jo=";
  };

  vendorHash = null;

  ldflags = [
    "-s"
    "-w"
    "-X main.version=${version}"
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [
    versionCheckHook
  ];

  meta = {
    description = "Command-line tool to recolor images using theme palettes";
    homepage = "https://github.com/ashish0kumar/tint";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ashish0kumar ];
    mainProgram = "tint";
    platforms = lib.platforms.unix;
  };
}