Unverified Commit bb667d69 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #232715 from jmbaur/init-fiano

parents cf19c6a7 e8d796f8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -7533,6 +7533,12 @@
    githubId = 8900;
    name = "Johan Magnus Jonsson";
  };
  jmbaur = {
    email = "jaredbaur@fastmail.com";
    github = "jmbaur";
    githubId = 45740526;
    name = "Jared Baur";
  };
  jmc-figueira = {
    email = "business+nixos@jmc-figueira.dev";
    github = "jmc-figueira";
+40 −0
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "fiano";

  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "linuxboot";
    repo = "fiano";
    rev = "v${version}";
    hash = "sha256-QX0XMec99YbYWyfRThhwDaNjKstkUEz6wsisBynprmg=";
  };

  subPackages = [
    "cmds/cbfs"
    "cmds/create-ffs"
    "cmds/fmap"
    "cmds/fspinfo"
    "cmds/glzma"
    "cmds/guid2english"
    "cmds/microcode"
    "cmds/utk"
  ];

  vendorHash = "sha256-00ZSAVEmk2pNjv6fo++gnpIheK8lo4AVWf+ghXappnI=";

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "Go-based tools for modifying UEFI firmware";
    homepage = "https://github.com/linuxboot/fiano";
    changelog = "https://github.com/linuxboot/fiano/blob/v${version}/RELEASES.md";
    license = licenses.bsd3;
    maintainers = [ maintainers.jmbaur ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4877,6 +4877,8 @@ with pkgs;
  fetch-scm = callPackage ../tools/misc/fetch-scm { };
  fiano = callPackage ../tools/misc/fiano { };
  filebench = callPackage ../tools/misc/filebench { };
  filebot = callPackage ../applications/video/filebot { };