depot/third_party/nixpkgs/pkgs/by-name/un/unbook/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

39 lines
850 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
makeWrapper,
calibre,
gitUpdater,
}:
rustPlatform.buildRustPackage rec {
pname = "unbook";
version = "0.9.1";
src = fetchFromGitHub {
owner = "ludios";
repo = "unbook";
rev = version;
hash = "sha256-whWWh/jQ4RkGA3T1VCmt6zhpQQCzh2jASYg69IlfEeo=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-r4RWcz7TSP7wfo9mu8wfOyy7C4PIWkrSt4RyDY3/lQA=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/unbook --prefix PATH : ${lib.makeBinPath [ calibre ]}
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
description = "Ebook to self-contained-HTML converter";
homepage = "https://unbook.ludios.org";
license = licenses.cc0;
maintainers = with maintainers; [ jmbaur ];
mainProgram = "unbook";
};
}