tinycc: derive rev from version

This commit is contained in:
Joachim Fasting 2019-10-05 13:04:41 +02:00
parent f73f525b72
commit bb75bc9d42
No known key found for this signature in database
GPG key ID: 5C204DF675C90294

View file

@ -4,10 +4,11 @@ with lib;
stdenv.mkDerivation rec {
pname = "tcc";
version = "0.9.27";
upstreamVersion = "release_${concatStringsSep "_" (builtins.splitVersion version)}";
src = fetchFromRepoOrCz {
repo = "tinycc";
rev = "release_0_9_27";
rev = upstreamVersion;
sha256 = "12mm1lqywz0akr2yb2axjfbw8lwv57nh395vzsk534riz03ml977";
};