Skip to content

Instantly share code, notes, and snippets.

@raspher
Created February 3, 2024 23:56
Show Gist options
  • Save raspher/84f073326b7afe2087b0390da9598756 to your computer and use it in GitHub Desktop.
Save raspher/84f073326b7afe2087b0390da9598756 to your computer and use it in GitHub Desktop.
houdoku packaging attemp
{ 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