Merge pull request #170961 from SuperSandro2000/inih

inih: fix version parsing with nix-env
This commit is contained in:
Sandro 2022-05-03 16:56:09 +02:00 committed by GitHub
commit eee88aa9bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,12 +2,12 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "inih"; pname = "inih";
version = "r53"; version = "53";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "benhoyt"; owner = "benhoyt";
repo = pname; repo = pname;
rev = version; rev = "r${version}";
sha256 = "0dqf5j2sw4hq68rqvxbrsf44ygfzx9ypiyzipk4cvp9aimbvsbc6"; sha256 = "0dqf5j2sw4hq68rqvxbrsf44ygfzx9ypiyzipk4cvp9aimbvsbc6";
}; };
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Simple .INI file parser in C, good for embedded systems"; description = "Simple .INI file parser in C, good for embedded systems";
homepage = "https://github.com/benhoyt/inih"; homepage = "https://github.com/benhoyt/inih";
changelog = "https://github.com/benhoyt/inih/releases/tag/${version}"; changelog = "https://github.com/benhoyt/inih/releases/tag/r${version}";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ TredwellGit ]; maintainers = with maintainers; [ TredwellGit ];
platforms = platforms.all; platforms = platforms.all;