forked from mirrors/nixpkgs
c1287a4b9c
Need this to avoid this issue in pkgsStatic: ld: cannot find -lc /cc @ericson2314
29 lines
836 B
Nix
29 lines
836 B
Nix
{ stdenv, buildPackages, fetchurl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "kexec-tools-${version}";
|
|
version = "2.0.19";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"mirror://kernel/linux/utils/kernel/kexec/${name}.tar.xz"
|
|
"http://horms.net/projects/kexec/kexec-tools/${name}.tar.xz"
|
|
];
|
|
sha256 = "03jyi4c47ywclycf3a253xpqs7p6ys8inz9q66b8m3xc6nrh307d";
|
|
};
|
|
|
|
hardeningDisable = [ "format" "pic" "relro" "pie" ];
|
|
|
|
configureFlags = [ "BUILD_CC=${buildPackages.stdenv.cc.targetPrefix}cc" ];
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
buildInputs = [ zlib ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://horms.net/projects/kexec/kexec-tools;
|
|
description = "Tools related to the kexec Linux feature";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
badPlatforms = platforms.riscv;
|
|
};
|
|
}
|