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

View File

@ -10274,7 +10274,9 @@ let
firejail = callPackage ../os-specific/linux/firejail {}; 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 { }; fuse = callPackage ../os-specific/linux/fuse { };