Created
February 3, 2024 23:56
-
-
Save raspher/84f073326b7afe2087b0390da9598756 to your computer and use it in GitHub Desktop.
houdoku packaging attemp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ mkYarnPackage | |
, fetchFromGitHub | |
, fetchYarnDeps | |
, lib | |
}: | |
let | |
version = "2.14.0"; | |
in | |
mkYarnPackage rec { | |
inherit version; | |
pname = "houdoku"; | |
src = fetchFromGitHub { | |
owner = "xgi"; | |
repo = "houdoku"; | |
rev = "v${version}"; | |
sha256 = "sha256-7BimFEskV7q5FuIgv0eLulhwt3Yx4P2k1XC0W8lN8iE="; | |
}; | |
packageJSON = "${src}/package.json"; | |
offlineCache = fetchYarnDeps { | |
yarnLock = "${src}/yarn.lock"; | |
sha256 = "sha256-goigmMk2hUgCxw7QrFvnDtxhpuuXnKwuIbCPpfzU1sk="; | |
}; | |
buildPhase = '' | |
runHook preBuild | |
yarn --offline build | |
runHook postBuild | |
''; | |
doDist = false; | |
meta = { | |
description = "Manga reader and library manager for the desktop"; | |
homepage = "https://github.com/xgi/houdoku"; | |
license = lib.licenses.mit; | |
maintainers = with lib.maintainers; [ ]; # todo | |
platforms = lib.platforms.all; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment