@@ -1,15 +1,25 @@
11{ stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
22
3+with stdenv.lib;
4+
35let
4− version = "4.12.10";
6+ version = "4.13";
57 revision = "a";
6− sha256 = "00vm7bc4sfj2qj3yar9hy6qf8m2kmkxmxlf8q908jb1m541pfvpn";
7−in
8+ sha256 = "1d118yi40yqzfjxdwl00h7alp1z0qq7rk5q14w3hs281ig773aip";
9+
10+ # modVersion needs to be x.y.z, will automatically add .0 if needed
11+ modVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
812
13+ # branchVersion needs to be x.y
14+ branchVersion = concatStrings (intersperse "." (take 2 (splitString "." version)));
15+
16+ modDirVersion = "${modVersion}-hardened";
17+in
918import ./generic.nix (args // {
19+ inherit modDirVersion;
20+
1021 version = "${version}-${revision}";
11− extraMeta.branch = "4.12";
12− modDirVersion = "${version}-hardened";
22+ extraMeta.branch = "${branchVersion}";
1323
1424 src = fetchFromGitHub {
1525 inherit sha256;