2024-03-26 21:02:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, nasm, unixtools }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "10";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gordonflashtool";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marmolak";
|
|
|
|
repo = "GordonFlashTool";
|
|
|
|
rev = "release-${version}";
|
|
|
|
hash = "sha256-/zpw7kVdQeR7QcRsP1+qcu8+hlEQTGwOKClJkwVcBPg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ nasm unixtools.xxd ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
# build the gordon binary
|
|
|
|
make all-boot-code
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 gordon $out/bin/gordon
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/marmolak/GordonFlashTool";
|
2024-06-07 09:40:42 +02:00
|
|
|
description = "Toolset for Gotek SFR1M44-U100 formatted usb flash drives";
|
2024-03-26 21:02:27 +01:00
|
|
|
maintainers = with lib.maintainers; [ marmolak ];
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
mainProgram = "gordon";
|
|
|
|
};
|
|
|
|
}
|