2019-03-07 17:40:54 +00:00
|
|
|
{ version, sha256, installFiles }:
|
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qtbase, qmake, cmake, zip }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
passthru = {
|
|
|
|
inherit version;
|
|
|
|
inherit sha256;
|
|
|
|
inherit installFiles;
|
|
|
|
};
|
|
|
|
pname = "uefitool";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit sha256;
|
|
|
|
owner = "LongSoft";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
nativeBuildInputs = [ qmake cmake zip ];
|
|
|
|
|
2021-07-18 21:42:48 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
buildPhase = ''
|
|
|
|
bash unixbuild.sh
|
|
|
|
'';
|
2019-03-07 17:40:54 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"/bin
|
|
|
|
cp ${lib.concatStringsSep " " installFiles} "$out"/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "UEFI firmware image viewer and editor";
|
|
|
|
homepage = "https://github.com/LongSoft/uefitool";
|
|
|
|
license = licenses.bsd2;
|
2023-02-05 23:31:57 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-03-07 17:40:54 +00:00
|
|
|
# uefitool supposedly works on other platforms, but their build script only works on linux in nixpkgs
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|