dotfiles/overlays/kobo-firmware-extractor/default.nix
magic_rb dd304b8694
inkbook enablement work
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-06-25 22:29:39 +02:00

28 lines
696 B
Nix

{inputs, ...}: {
flake.overlays.kobo-firmware-extractor = final: prev: {
kobo-firmware-extractor = final.stdenv.mkDerivation {
pname = "kobo-firmware-extractor";
version = "1.0";
src = final.fetchFromGitHub {
owner = "akemnade";
repo = "kobo-firmware-extractor";
rev = "00b8bb6512dc9671ad3df3afad42b5131f10b440";
hash = "sha256-6tw1+6AtL/TWDc9Xp9NSKwwwh272lZLrtXm6PhSGEhg=";
};
phases = [
"unpackPhase"
"buildPhase"
];
buildPhase = ''
mkdir -p $out/bin
gcc extract-kobohidden.c -o $out/bin/extract-kobohidden
'';
meta.mainProgram = "extract-kobohidden";
};
};
}