about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-05-23 20:36:29 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-05-24 08:09:37 +0200
commitcf3b703e42ff641ffde4f3335f03a36285f03192 (patch)
treec05e8ac1b6b4834dc98b4e8a27fa94ee90775020
parentab51a2dbd6b5fcc8f6ae467075a2863ecac7c7d0 (diff)
downloadnixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.tar
nixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.tar.gz
nixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.tar.bz2
nixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.tar.lz
nixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.tar.xz
nixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.tar.zst
nixlib-cf3b703e42ff641ffde4f3335f03a36285f03192.zip
weechat: enable pie
-rw-r--r--pkgs/applications/networking/irc/weechat/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/networking/irc/weechat/default.nix b/pkgs/applications/networking/irc/weechat/default.nix
index daa088997309..58b462194bbf 100644
--- a/pkgs/applications/networking/irc/weechat/default.nix
+++ b/pkgs/applications/networking/irc/weechat/default.nix
@@ -30,6 +30,8 @@ let
       version = "3.1";
       pname = "weechat";
 
+      hardeningEnable = [ "pie" ];
+
       src = fetchurl {
         url = "https://weechat.org/files/src/weechat-${version}.tar.bz2";
         sha256 = "06w147wzrzp6xbqiz6s5nq5xdjy7jn3f18xajxy50pynjd6vmfh5";
@@ -68,6 +70,11 @@ let
         done
       '';
 
+      doInstallCheck = true;
+      installCheckPhase = ''
+        $out/bin/weechat --version
+      '';
+
       meta = {
         homepage = "http://www.weechat.org/";
         description = "A fast, light and extensible chat client";