chore: nixfmt
This commit is contained in:
parent
ff0f6d4a23
commit
76a755bcdf
10 changed files with 55 additions and 85 deletions
|
@ -1,9 +1,7 @@
|
|||
{ lib, stdenv, fetchFromGitHub, kernel, kmod }:
|
||||
|
||||
let
|
||||
kernelDirectory = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
let kernelDirectory = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
|
||||
in stdenv.mkDerivation {
|
||||
pname = "zenergy";
|
||||
version = "a3e124477ee8197015481156b90100d49fa3cd84";
|
||||
|
||||
|
@ -16,9 +14,7 @@ stdenv.mkDerivation {
|
|||
|
||||
hardeningDisable = [ "format" "pic" ];
|
||||
|
||||
makeFlags = kernel.makeFlags ++ [
|
||||
"KDIR=${kernelDirectory}"
|
||||
];
|
||||
makeFlags = kernel.makeFlags ++ [ "KDIR=${kernelDirectory}" ];
|
||||
|
||||
preBuild = ''
|
||||
substituteInPlace Makefile --replace-fail "PWD modules_install" "PWD INSTALL_MOD_PATH=$out modules_install"
|
||||
|
@ -33,7 +29,8 @@ stdenv.mkDerivation {
|
|||
outputs = [ "out" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely.";
|
||||
description =
|
||||
"Based on AMD_ENERGY driver, but with some jiffies added so non-root users can read it safely.";
|
||||
homepage = "https://github.com/BoukeHaarsma23/zenergy";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ wizardlink ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue