blob: 813746a37314b495af2f85895b9afc855af8734b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ stdenvNoCC, fetchzip, lib, ... }:
{ hardware, date, version, hash ? "", sha256 ? "", ... }:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "kobo-firmware";
inherit version hardware date;
src = fetchzip {
url = "https://ereaderfiles.kobo.com/firmwares/${finalAttrs.hardware}/${finalAttrs.date}/kobo-update-${finalAttrs.version}.zip";
inherit hash sha256;
};
phases = "installPhase";
installPhase = ''
runHook preInstall
cp -r $src $out
runHook postInstall
'';
passthru = {
inherit hardware date;
};
meta = with lib; {
homepage = "https://pgaskin.net/KoboStuff/kobofirmware.html";
description = ''
Kobo firmware files.
'';
platform = platforms.all;
};
})
|