summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2022-05-18 18:38:17 +0300
committerArtturin <Artturin@artturin.com>2022-09-07 21:49:32 +0300
commit5c4210793dde29b702a2c138f9567c89a0562e84 (patch)
treed9be6a6562c1e45323beee613c97c4e5b14a3c68
parentbf76af55353b160fab6c0af1f9cd424ddd36d977 (diff)
downloadnixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.tar
nixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.tar.gz
nixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.tar.bz2
nixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.tar.lz
nixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.tar.xz
nixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.tar.zst
nixpkgs-5c4210793dde29b702a2c138f9567c89a0562e84.zip
powercap: fix paths in pkg-config file
-rw-r--r--pkgs/os-specific/linux/powercap/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/powercap/default.nix b/pkgs/os-specific/linux/powercap/default.nix
index 96ec83852d9..e705b6a3485 100644
--- a/pkgs/os-specific/linux/powercap/default.nix
+++ b/pkgs/os-specific/linux/powercap/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake }:
+{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
 
 stdenv.mkDerivation rec {
   pname = "powercap";
@@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-l+IpFqBnCYUU825++sUPySD/Ku0TEIX2kt+S0Wml6iA=";
   };
 
+  # in master post 0.6.0, see https://github.com/powercap/powercap/issues/8
+  patches = [
+    (fetchpatch {
+      name = "fix-pkg-config.patch";
+      url = "https://github.com/powercap/powercap/commit/278dceb51635686e343edfc357b6020533fff299.patch";
+      sha256 = "0h62j63xdn0iqyx4xbia6hlmdjn45camb82z4vv6sb37x9sph7rg";
+    })
+  ];
+
   nativeBuildInputs = [ cmake ];
 
   cmakeFlags = [