add kobo utils
This commit is contained in:
parent
a90219e7cd
commit
a8b735e34d
|
@ -10,6 +10,33 @@
|
||||||
calibre-web = prev.calibre-web.overrideAttrs (prevAttrs: rec {
|
calibre-web = prev.calibre-web.overrideAttrs (prevAttrs: rec {
|
||||||
propagatedBuildInputs = prevAttrs.propagatedBuildInputs ++ [ final.python3.pkgs.jsonschema ]; # allow kobo sync stuff
|
propagatedBuildInputs = prevAttrs.propagatedBuildInputs ++ [ final.python3.pkgs.jsonschema ]; # allow kobo sync stuff
|
||||||
});
|
});
|
||||||
|
# Need to do server and agent too, maybe
|
||||||
|
# woodpecker-cli-next =
|
||||||
|
# let
|
||||||
|
# common = prev.callPackage "${inputs.unstable}/pkgs/development/tools/continuous-integration/woodpecker/common.nix" { };
|
||||||
|
# in
|
||||||
|
# (prev.buildGoModule rec {
|
||||||
|
# pname = "woodpecker-cli";
|
||||||
|
# version = "next-${inputs.woodpecker.shortRev}";
|
||||||
|
# src = inputs.woodpecker;
|
||||||
|
# vendorSha256 = "sha256-8st1LdgrQQqEZ6oSBm/nE1WI/v7NI+f56qZJySJIFJw=";
|
||||||
|
# inherit (common) postBuild;
|
||||||
|
|
||||||
|
# subPackages = "cmd/cli";
|
||||||
|
|
||||||
|
# ldflags = [
|
||||||
|
# "-s"
|
||||||
|
# "-w"
|
||||||
|
# "-X github.com/woodpecker-ci/woodpecker/version.Version=${version}"
|
||||||
|
# ];
|
||||||
|
|
||||||
|
# CGO_ENABLED = 0;
|
||||||
|
|
||||||
|
# meta = common.meta // {
|
||||||
|
# description = "Command line client for the Woodpecker Continuous Integration server";
|
||||||
|
# };
|
||||||
|
# });
|
||||||
|
|
||||||
# example = prev.example.overrideAttrs (oldAttrs: rec {
|
# example = prev.example.overrideAttrs (oldAttrs: rec {
|
||||||
# ...
|
# ...
|
||||||
# });
|
# });
|
||||||
|
|
|
@ -5,4 +5,6 @@
|
||||||
plymouth-themes = pkgs.callPackage ./plymouth.nix { };
|
plymouth-themes = pkgs.callPackage ./plymouth.nix { };
|
||||||
tic-80 = pkgs.callPackage ./tic-80.nix { };
|
tic-80 = pkgs.callPackage ./tic-80.nix { };
|
||||||
fennel-ls = pkgs.callPackage ./fennel-ls.nix { };
|
fennel-ls = pkgs.callPackage ./fennel-ls.nix { };
|
||||||
|
kobopatch = pkgs.callPackage ./kobopatch.nix { };
|
||||||
|
# mautrix-discord = pkgs.callPackage ./mautrix-discord.nix { }; # Handled by matrix-appservices input
|
||||||
}
|
}
|
||||||
|
|
22
pkgs/kobopatch.nix
Normal file
22
pkgs/kobopatch.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
name = "kobopatch";
|
||||||
|
version = "0.15.0";
|
||||||
|
|
||||||
|
vendorSha256 = "1i6srhyig4x8mywyc2l8wzzm1afvb7wxmjsr84c447sb1xss6p7x";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "geek1011";
|
||||||
|
repo = "kobopatch";
|
||||||
|
rev = "653070c67c83ec61884854efc4f8a3132d82a2e5";
|
||||||
|
sha256 = "09hr3zh0w0f78cx40d2yydqv0mmjdh4iwdgia7sikraphvha85nn";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A patch maker for kobo eReader devices.";
|
||||||
|
homepage = "https://github.com/geek1011/kobopatch";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
|
};
|
||||||
|
}
|
23
pkgs/koboutils.nix
Normal file
23
pkgs/koboutils.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
name = "koboutils";
|
||||||
|
version = "git_2020-04-08";
|
||||||
|
|
||||||
|
vendorSha256 = "1hqvizvbc29yib6awmvlklxkq7j8c0d32gxsipdiwhkh79xbd6wq";
|
||||||
|
deleteVendor = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "geek1011";
|
||||||
|
repo = "koboutils";
|
||||||
|
rev = "50024f2afc6b20205a273ffcbb72c934b80bba96";
|
||||||
|
sha256 = "0zpmjya13wbmpxbwrpbvw7d2rb040wmc09djhnn6dszlqpflwxmy";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Various utilities for Kobo eReaders";
|
||||||
|
homepage = "https://github.com/geek1011/koboutils";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue