nixpkgs/pkgs/os-specific/linux/kexectools/default.nix
Tobias Geerinckx-Rice ba527075af kexec-tools: add mirror://kernel URI
From http://horms.net/projects/kexec/kexec-tools:

  "The canonical site for kexec-tools release is
   http://kernel.org/pub/linux/utils/kernel/kexec/. It should also be
   available on the extensive network of kernel.org mirror sites and
   it is mirrored at http://horms.net/projects/kexec/kexec-tools/
   just for good measure."
2015-11-09 18:03:10 +01:00

25 lines
653 B
Nix

{ stdenv, fetchurl, zlib }:
let version = "2.0.10"; in
stdenv.mkDerivation rec {
name = "kexec-tools-${version}";
src = fetchurl {
urls = [
"mirror://kernel/linux/utils/kernel/kexec/${name}.tar.xz"
"http://horms.net/projects/kexec/kexec-tools/${name}.tar.xz"
];
sha256 = "18x134nj37j1rshn5hxbyhdcv9kk5sfshs72alkip1icf54l2gp2";
};
buildInputs = [ zlib ];
meta = with stdenv.lib; {
inherit version;
homepage = http://horms.net/projects/kexec/kexec-tools;
description = "Tools related to the kexec Linux feature";
platforms = with platforms; linux;
maintainers = with maintainers; [ nckx ];
};
}