Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{
|
|
clang,
|
|
fetchFromGitHub,
|
|
lib,
|
|
lzo,
|
|
lz4,
|
|
stdenv,
|
|
ucl,
|
|
unstableGitUpdater,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "dumpifs";
|
|
version = "0-unstable-2020-05-07";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "askac";
|
|
repo = "dumpifs";
|
|
rev = "b7bac90e8312eca2796f2003a52791899eb8dcd9";
|
|
hash = "sha256-vFiMKcPfowLQQZXlXbq5ZR1X6zr7u3iQwz3o4A6aQMY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ clang ];
|
|
|
|
buildInputs = [
|
|
lzo
|
|
lz4
|
|
ucl
|
|
zlib
|
|
];
|
|
|
|
postUnpack = ''
|
|
rm source/{dumpifs,exMifsLzo,uuu,zzz}
|
|
'';
|
|
|
|
patches = [ ./package.patch ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 dumpifs exMifsLz4 exMifsLzo fixdecifs fixencifs uuu zzz -t $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = {
|
|
description = "Tool for those who are interested in hacking MIB2 firmware";
|
|
homepage = "https://github.com/askac/dumpifs";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ KSJ2000 ];
|
|
mainProgram = "dumpifs";
|
|
};
|
|
})
|