summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2017-09-04 11:09:29 -0400
committerTim Steinbach <tim@nequissimus.com>2017-09-04 11:09:29 -0400
commit967077537b42fffca3a81a3af3a228d1864fd61e (patch)
treef28da1d548eefbd91bf397c254a9ed7007f559cc /pkgs/os-specific/linux
parentda3640ec56d2466144844ff14d07c81ebcb15349 (diff)
downloadnixlib-967077537b42fffca3a81a3af3a228d1864fd61e.tar
nixlib-967077537b42fffca3a81a3af3a228d1864fd61e.tar.gz
nixlib-967077537b42fffca3a81a3af3a228d1864fd61e.tar.bz2
nixlib-967077537b42fffca3a81a3af3a228d1864fd61e.tar.lz
nixlib-967077537b42fffca3a81a3af3a228d1864fd61e.tar.xz
nixlib-967077537b42fffca3a81a3af3a228d1864fd61e.tar.zst
nixlib-967077537b42fffca3a81a3af3a228d1864fd61e.zip
linux-copperhead: 4.12.10.a -> 4.13.a
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix b/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix
index 8e4f747051e9..0d385c444f20 100644
--- a/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix
+++ b/pkgs/os-specific/linux/kernel/linux-hardened-copperhead.nix
@@ -1,15 +1,25 @@
 { stdenv, hostPlatform, fetchFromGitHub, perl, buildLinux, ... } @ args:
 
+with stdenv.lib;
+
 let
-  version = "4.12.10";
+  version = "4.13";
   revision = "a";
-  sha256 = "00vm7bc4sfj2qj3yar9hy6qf8m2kmkxmxlf8q908jb1m541pfvpn";
-in
+  sha256 = "1d118yi40yqzfjxdwl00h7alp1z0qq7rk5q14w3hs281ig773aip";
+
+  # modVersion needs to be x.y.z, will automatically add .0 if needed
+  modVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
 
+  # branchVersion needs to be x.y
+  branchVersion = concatStrings (intersperse "." (take 2 (splitString "." version)));
+
+  modDirVersion = "${modVersion}-hardened";
+in
 import ./generic.nix (args // {
+  inherit modDirVersion;
+
   version = "${version}-${revision}";
-  extraMeta.branch = "4.12";
-  modDirVersion = "${version}-hardened";
+  extraMeta.branch = "${branchVersion}";
 
   src = fetchFromGitHub {
     inherit sha256;