mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #299295 from marmolak/add-new-package-gordonflashtool
gordonflashtool: init at 10
This commit is contained in:
commit
cbc49f33fc
|
@ -12199,6 +12199,12 @@
|
||||||
githubId = 26470037;
|
githubId = 26470037;
|
||||||
name = "Markus Kowalewski";
|
name = "Markus Kowalewski";
|
||||||
};
|
};
|
||||||
|
marmolak = {
|
||||||
|
email = "hack.robin@gmail.com";
|
||||||
|
github = "marmolak";
|
||||||
|
githubId = 1709273;
|
||||||
|
name = "Robin Hack";
|
||||||
|
};
|
||||||
marsam = {
|
marsam = {
|
||||||
github = "marsam";
|
github = "marsam";
|
||||||
githubId = 65531;
|
githubId = 65531;
|
||||||
|
|
41
pkgs/by-name/go/gordonflashtool/package.nix
Normal file
41
pkgs/by-name/go/gordonflashtool/package.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ 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";
|
||||||
|
description = "Toolset for Gotek SFR1M44-U100 formatted usb flash drives.";
|
||||||
|
maintainers = with lib.maintainers; [ marmolak ];
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
platforms = lib.platforms.all;
|
||||||
|
mainProgram = "gordon";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue