From fd68d0e485c9a9361c0fc3a865ec2641d7b6715b Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Thu, 15 Jun 2023 23:02:23 +0200 Subject: [PATCH] Add overlay for bootloadHID Signed-off-by: Magic_RB --- flake.nix | 1 + overlays/bootloadHID.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 overlays/bootloadHID.nix diff --git a/flake.nix b/flake.nix index afecf55..446c186 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,7 @@ overlays/ds3os.nix overlays/terraform-provider-vault.nix overlays/terraform-provider-influxdb-v2.nix + overlays/bootloadHID.nix ]; flake.nixosModules = { diff --git a/overlays/bootloadHID.nix b/overlays/bootloadHID.nix new file mode 100644 index 0000000..89709a8 --- /dev/null +++ b/overlays/bootloadHID.nix @@ -0,0 +1,28 @@ +{ ... }: +{ + flake.overlays.bootloadHID = + final: prev: + { + bootloadHID = prev.stdenv.mkDerivation { + pname = "bootloadHID"; + version = "2012-12-08"; + + src = prev.fetchFromGitHub { + owner = "whiteson"; + repo = "bootloadHID"; + rev = "42c6f246b79949892268d2212e0347f27e01bd53"; + sha = ""; + }; + + buildInputs = with prev; [ + libusb-compat-0_1 + ]; + + sourceRoot = "source/commandline"; + installPhase = '' + install -d $out/bin + install bootloadHID $out/bin + ''; + }; + }; +}