freefall: inherit kernel package from linuxPackages
Let's never bump again.
This commit is contained in:
parent
be7253d846
commit
0dea3803e7
@ -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 ];
|
||||||
};
|
};
|
||||||
|
@ -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 { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user