Skip to content

Commit

Permalink
Bump tegra-eeprom-tool to upstream master
Browse files Browse the repository at this point in the history
This removes the dependence on fork patches.
  • Loading branch information
cmoog authored and danielfullmer committed Jun 17, 2023
1 parent f65ff35 commit ddaff1b
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions tegra-eeprom-tool.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake, pkg-config, libedit }:
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, libedit }:

stdenv.mkDerivation rec {
pname = "tegra-eeprom-tool";
version = "v2.0.1";
version = "unstable-2023-03-24";

src = fetchFromGitHub {
owner = "OE4T";
repo = pname;
rev = version;
sha256 = "sha256-H0BjgFLWf2eruyL5HF4Xu8IImiBra3qCofF4wfL1ebU=";
rev = "283a701d25283a4e5584f5fe072bcb2d7d2ae1b1";
sha256 = "sha256-YMHIruwF9YKjYJY52DLJ8eovFZYyrUt1jb5GbTcrC+A=";
};

patches = [
# Use CMAKE_INSTALL_FULL_* for absolute paths
# https://github.com/OE4T/tegra-eeprom-tool/pull/8
(fetchpatch {
url = "https://github.com/danielfullmer/tegra-eeprom-tool/commit/25381fb3bd780f0e588744509edc17cf58003296.patch";
sha256 = "sha256-QYcBglF6Ri0ZhJkVm4cIogkqbhm5e7tfDfWDim+IlhA=";
})
# Allow building using static libraries
# https://github.com/OE4T/tegra-eeprom-tool/pull/9
(fetchpatch {
url = "https://github.com/danielfullmer/tegra-eeprom-tool/commit/e1b9349becb4ad5c28af19702d181751aa8ca52f.patch";
sha256 = "sha256-BAQ0m9M+PAaiR+uaWXY4emClhpaxDOGyM1nKe8+F/FI=";
})
];

nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libedit ];

Expand Down

0 comments on commit ddaff1b

Please sign in to comment.