mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-10 06:07:01 +00:00
bpftools: decouple version from linux_latest
bpftools causes way too many rebuilds nowadays, so its updates are not suitable for merging directly to nixpkgs master. We want to update linux_latest faster than that.
This commit is contained in:
parent
9c2a7cc09d
commit
f12d2f016b
@ -1,14 +1,19 @@
|
|||||||
{ lib, stdenv
|
{ lib, stdenv, fetchurl
|
||||||
, libopcodes, libopcodes_2_38
|
, libopcodes, libopcodes_2_38
|
||||||
, libbfd, libbfd_2_38
|
, libbfd, libbfd_2_38
|
||||||
, elfutils, readline
|
, elfutils, readline
|
||||||
, linuxPackages_latest, zlib
|
, zlib
|
||||||
, python3, bison, flex
|
, python3, bison, flex
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bpftools";
|
pname = "bpftools";
|
||||||
inherit (linuxPackages_latest.kernel) version src;
|
version = "5.19.9";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
|
||||||
|
sha256 = "0dvzjbyknzlx4ndz77fsm6v28fj2chxbq1z85fbc3bckcscbbm8a";
|
||||||
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ python3 bison flex ];
|
nativeBuildInputs = [ python3 bison flex ];
|
||||||
buildInputs = (if (lib.versionAtLeast version "5.20")
|
buildInputs = (if (lib.versionAtLeast version "5.20")
|
||||||
|
Loading…
Reference in New Issue
Block a user