11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
19 hash = "sha256-+WZbs10+id+nohTZzLjEofb6k8PMGd73YhY3FUTXx5Q=";
22 offlineCache = fetchYarnDeps {
23 yarnLock = "${src}/yarn.lock";
24 hash = "sha256-++MqWIUntXQwOYpgAJ3nhAtZ5nxmEreioVHQokYkw7w=";
36 export HOME=$(mktemp -d)
37 yarn config --offline set yarn-offline-mirror "$offlineCache"
38 fixup-yarn-lock yarn.lock
39 yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install
47 yarn --offline --production install
49 mkdir -p "$out/lib/node_modules/pxder"
50 cp -r . "$out/lib/node_modules/pxder"
52 makeWrapper "${nodejs}/bin/node" "$out/bin/pxder" \
53 --add-flags "$out/lib/node_modules/pxder/bin/pxder"
59 description = "Download illusts from pixiv.net";
60 homepage = "https://github.com/Tsuk1ko/pxder";
61 license = lib.licenses.gpl3Plus;
62 mainProgram = "pxder";
63 maintainers = with lib.maintainers; [ vanilla ];
64 platforms = lib.platforms.all;