about summary refs log tree commit diff
path: root/pkgs/dmenu/default.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-08-11 10:55:51 +0200
committerGitHub <noreply@github.com>2020-08-11 10:55:51 +0200
commitbcb186971fea22f8ae15caf6d6252dcdaa06ec88 (patch)
tree7eda865cb7d2ba3f6ae925f883f00bde67a80fb8 /pkgs/dmenu/default.nix
parentabb741c64a9c3a86f35d592feb3b76d087c67d6d (diff)
downloadpnpkgs-bcb186971fea22f8ae15caf6d6252dcdaa06ec88.tar.gz
pnpkgs-bcb186971fea22f8ae15caf6d6252dcdaa06ec88.zip
Fix const in C
Diffstat (limited to 'pkgs/dmenu/default.nix')
-rw-r--r--pkgs/dmenu/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/dmenu/default.nix b/pkgs/dmenu/default.nix
index f03199b..ff83a35 100644
--- a/pkgs/dmenu/default.nix
+++ b/pkgs/dmenu/default.nix
@@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
 
   preConfigure = ''
     sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk
+    sed 's/static const unsigned int \(.*alpha\) = \(.*\);/#define \1 \2/' config.h
   '';
 
   makeFlags = [ "CC:=$(CC)" ];