1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/system/uefitool/common.nix
ajs124 65a2c708e7 uefitool: init at A56 and 0.27.0
default to new-engine
2020-01-05 19:24:10 +01:00

40 lines
965 B
Nix

{ 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 ];
configurePhase = ":";
buildPhase = "bash unixbuild.sh";
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;
maintainers = with maintainers; [ ajs124 ];
# uefitool supposedly works on other platforms, but their build script only works on linux in nixpkgs
platforms = platforms.linux;
};
}