diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-07-20 16:45:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 16:45:20 +0200 |
commit | c14c908a90608000149a154274da255cfc267875 (patch) | |
tree | 100d67be11e0b8a4eb444804bd61e41a1e3c9acf | |
parent | a5660939b99b0d40a03edef6e0752972e4ee0096 (diff) | |
parent | 174d8c0d3f04511cf7e186ccf22cfb6d9787498d (diff) | |
download | nixpkgs-c14c908a90608000149a154274da255cfc267875.tar nixpkgs-c14c908a90608000149a154274da255cfc267875.tar.gz nixpkgs-c14c908a90608000149a154274da255cfc267875.tar.bz2 nixpkgs-c14c908a90608000149a154274da255cfc267875.tar.lz nixpkgs-c14c908a90608000149a154274da255cfc267875.tar.xz nixpkgs-c14c908a90608000149a154274da255cfc267875.tar.zst nixpkgs-c14c908a90608000149a154274da255cfc267875.zip |
Merge pull request #130526 from kidonng/lsix
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/graphics/lsix/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 44 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 334ea7b72d7..7a36b76f97a 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5490,6 +5490,12 @@ githubId = 25607; name = "Raimon Grau"; }; + kidonng = { + email = "hi@xuann.wang"; + github = "kidonng"; + githubId = 44045911; + name = "Kid"; + }; kierdavis = { email = "kierdavis@gmail.com"; github = "kierdavis"; diff --git a/pkgs/tools/graphics/lsix/default.nix b/pkgs/tools/graphics/lsix/default.nix new file mode 100644 index 00000000000..ba07e2886b5 --- /dev/null +++ b/pkgs/tools/graphics/lsix/default.nix @@ -0,0 +1,36 @@ +{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, imagemagick }: + +stdenvNoCC.mkDerivation rec { + pname = "lsix"; + version = "1.7.4"; + + src = fetchFromGitHub { + owner = "hackerb9"; + repo = pname; + rev = version; + sha256 = "sha256-mOueSNhf1ywG4k1kRODBaWRjy0L162BAO1HRPaMMbFM="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + + install -Dm755 lsix -t $out/bin + + runHook postInstall + ''; + + postFixup = '' + wrapProgram $out/bin/lsix \ + --prefix PATH : ${lib.makeBinPath [ imagemagick ]} + ''; + + meta = with lib; { + description = "Shows thumbnails in terminal using sixel graphics"; + homepage = "https://github.com/hackerb9/lsix"; + license = licenses.gpl3Only; + platforms = platforms.all; + maintainers = with maintainers; [ kidonng ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 174927ce3af..42d753729da 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1646,6 +1646,8 @@ in lesspass-cli = callPackage ../tools/security/lesspass-cli { }; + lsix = callPackage ../tools/graphics/lsix { }; + mpdevil = callPackage ../applications/audio/mpdevil { }; pacparser = callPackage ../tools/networking/pacparser { }; |