about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/ncdu/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/misc/ncdu/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/misc/ncdu/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/tools/misc/ncdu/default.nix b/nixpkgs/pkgs/tools/misc/ncdu/default.nix
index 0cfb78bcf0bc..d535061cde64 100644
--- a/nixpkgs/pkgs/tools/misc/ncdu/default.nix
+++ b/nixpkgs/pkgs/tools/misc/ncdu/default.nix
@@ -2,11 +2,11 @@
 
 stdenv.mkDerivation rec {
   pname = "ncdu";
-  version = "2.1.2";
+  version = "2.2.2";
 
   src = fetchurl {
     url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
-    sha256 = "sha256-ng1u8DYYo8MWcmv0khe37+Rc7HWLLJF86JLe10Myxtw=";
+    hash = "sha256-kNkgAk51Ixi0aXds5X4Ds8cC1JMprZglruqzbDur+ZM=";
   };
 
   XDG_CACHE_HOME="Cache"; # FIXME This should be set in stdenv
@@ -19,11 +19,14 @@ stdenv.mkDerivation rec {
 
   PREFIX = placeholder "out";
 
+  # Avoid CPU feature impurity, see https://github.com/NixOS/nixpkgs/issues/169461
+  ZIG_FLAGS = "-Drelease-safe -Dcpu=baseline";
+
   meta = with lib; {
     description = "Disk usage analyzer with an ncurses interface";
     homepage = "https://dev.yorhel.nl/ncdu";
     license = licenses.mit;
     platforms = platforms.all;
-    maintainers = with maintainers; [ pSub SuperSandro2000 ];
+    maintainers = with maintainers; [ pSub SuperSandro2000 rodrgz ];
   };
 }