mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
dd304b8694
Signed-off-by: magic_rb <magic_rb@redalder.org>
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";
|
|
};
|
|
};
|
|
}
|