Merge pull request #273519 from fleaz/update_gcfflasher

gcfflasher: 4.0.3-beta -> 4.3.0-beta
This commit is contained in:
Weijia Wang 2023-12-19 00:06:03 +01:00 committed by GitHub
commit 99c02cb8fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,13 +8,13 @@
stdenv.mkDerivation rec {
pname = "gcfflasher";
version = "4.0.3-beta";
version = "4.3.0-beta";
src = fetchFromGitHub {
owner = "dresden-elektronik";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-m+iDBfsHo+PLYd3K8JaKwhIXcnj+Q8w7gIgmHp+0plk=";
hash = "sha256-H1CZ7rAM1QpdmSnUpvg6ytln/0MQKju/C4aIk3xl0PA=";
};
nativeBuildInputs = [
@ -22,11 +22,6 @@ stdenv.mkDerivation rec {
cmake
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace 'main_windows.c' 'main_posix.c'
'';
buildInputs = lib.optionals stdenv.isLinux [
libgpiod
];
@ -42,5 +37,6 @@ stdenv.mkDerivation rec {
license = licenses.bsd3;
homepage = "https://github.com/dresden-elektronik/gcfflasher";
maintainers = with maintainers; [ fleaz ];
platforms = platforms.all;
};
}