diff options
author | luc65r <lucas@ransan.tk> | 2020-10-28 12:03:48 +0100 |
---|---|---|
committer | luc65r <lucas@ransan.tk> | 2020-11-02 20:40:25 +0100 |
commit | fb3d7972427875e9a550e4819476d24dd6c68793 (patch) | |
tree | 9e525d979371e287145c3e20895b19c7ebad38fa /pkgs/tools/misc/convimg | |
parent | 4df7857cfd19b691a9ba4526bae9eee179621d8d (diff) |
convimg: init at 8.3
Diffstat (limited to 'pkgs/tools/misc/convimg')
-rw-r--r-- | pkgs/tools/misc/convimg/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/misc/convimg/default.nix b/pkgs/tools/misc/convimg/default.nix new file mode 100644 index 0000000000000..f9de88cb01e5a --- /dev/null +++ b/pkgs/tools/misc/convimg/default.nix @@ -0,0 +1,43 @@ +{ stdenv +, fetchFromGitHub +}: + +stdenv.mkDerivation rec { + pname = "convimg"; + version = "8.3"; + + src = fetchFromGitHub { + owner = "mateoconlechuga"; + repo = pname; + rev = "v${version}"; + sha256 = "1k2fkzfg08y2gcm8jabmb2plgqmgw6y30m73ys4mmbskxgy7hc3s"; + fetchSubmodules = true; + }; + + makeFlags = [ "CC=cc" ]; + + checkPhase = '' + pushd test + patchShebangs test.sh + ./test.sh + popd + ''; + + doCheck = true; + + installPhase = '' + install -Dm755 bin/convimg $out/bin/convimg + ''; + + meta = with stdenv.lib; { + description = "Image palette quantization"; + longDescription = '' + This program is used to convert images to other formats, + specifically for the TI84+CE and related calculators. + ''; + homepage = "https://github.com/mateoconlechuga/convimg"; + license = licenses.bsd3; + maintainers = with maintainers; [ luc65r ]; + platforms = platforms.linux; + }; +} |