3
0
Fork 0
forked from mirrors/nixpkgs

freefall: inherit kernel package from linuxPackages

Let's never bump again.
This commit is contained in:
Tobias Geerinckx-Rice 2016-03-16 20:47:54 +01:00
parent be7253d846
commit 0dea3803e7
2 changed files with 9 additions and 9 deletions

View file

@ -1,13 +1,9 @@
{ stdenv, fetchurl }:
{ stdenv, kernel }:
stdenv.mkDerivation rec {
name = "freefall-${version}";
version = "4.3";
inherit (kernel) version src;
src = fetchurl {
sha256 = "1bpkr45i4yzp32p0vpnz8mlv9lk4q2q9awf1kg9khg4a9g42qqja";
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
};
name = "freefall-${version}";
postPatch = ''
cd tools/laptop/freefall
@ -20,6 +16,8 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
inherit (kernel.meta) homepage license;
description = "Free-fall protection for spinning HP/Dell laptop hard drives";
longDescription = ''
Provides a shock protection facility in modern laptops with spinning hard
@ -29,7 +27,7 @@ stdenv.mkDerivation rec {
feature, which should cause the drive to switch to idle mode and unload the
disk heads, and an accelerometer device. It has no effect on SSD devices!
'';
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ nckx ];
};

View file

@ -10274,7 +10274,9 @@ let
firejail = callPackage ../os-specific/linux/firejail {};
freefall = callPackage ../os-specific/linux/freefall { };
freefall = callPackage ../os-specific/linux/freefall {
inherit (linuxPackages) kernel;
};
fuse = callPackage ../os-specific/linux/fuse { };