aboutsummaryrefslogtreecommitdiff
path: root/pkgs/kobo-patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/kobo-patch')
-rw-r--r--pkgs/kobo-patch/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/kobo-patch/default.nix b/pkgs/kobo-patch/default.nix
new file mode 100644
index 0000000..dc80f00
--- /dev/null
+++ b/pkgs/kobo-patch/default.nix
@@ -0,0 +1,29 @@
+{ stdenvNoCC, fetchzip, lib, ... }:
+{ version, hash ? "", sha256 ? "", ... }:
+stdenvNoCC.mkDerivation (finalAttrs: {
+ pname = "kobo-patch";
+ inherit version;
+
+ kobopatchVersion = "84";
+
+ src = fetchzip {
+ url = "https://github.com/pgaskin/kobopatch-patches/releases/download/v${finalAttrs.kobopatchVersion}/kobopatch_${finalAttrs.version}.zip";
+ inherit hash sha256;
+ };
+
+ phases = "installPhase";
+
+ installPhase = ''
+ runHook preInstall
+
+ cp -r $src $out
+
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/pgaskin/kobopatch-patches";
+ platform = platforms.all;
+ };
+
+})