dotfiles/overlays/kobo-firmware-extractor/default.nix

28 lines
696 B
Nix
Raw Normal View History

{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";
};
};
}