nixpkgs/pkgs/by-name/ma/manga-cli/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

41 lines
909 B
Nix

{ stdenvNoCC
, lib
, fetchFromGitHub
, makeWrapper
, img2pdf
, zathura
}:
stdenvNoCC.mkDerivation {
pname = "manga-cli";
version = "unstable-2022-04-11";
src = fetchFromGitHub {
owner = "7USTIN";
repo = "manga-cli";
rev = "a69fe935341eaf96618a6b2064d4dcb36c8690b5";
sha256 = "sha256-AnpOEgOBt2a9jtPNvfBnETGtc5Q1WBmSRFDvQB7uBE4=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 manga-cli $out/bin/manga-cli
wrapProgram $out/bin/manga-cli \
--prefix PATH : ${lib.makeBinPath [ img2pdf zathura ]}
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/7USTIN/manga-cli";
description = "Bash script for reading mangas via the terminal by scraping manganato";
license = licenses.gpl3Only;
maintainers = with maintainers; [ baitinq ];
mainProgram = "manga-cli";
};
}