mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-02 13:06:11 +01:00
28 lines
696 B
Nix
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";
|
||
|
};
|
||
|
};
|
||
|
}
|