summary refs log tree commit diff
path: root/pkgs/os-specific/linux/util-linux
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2017-06-15 14:05:50 +0300
committergnidorah <gnidorah@users.noreply.github.com>2017-06-15 14:05:50 +0300
commit286c36d7370763eb8222659ddd8f67773398c3c1 (patch)
tree937c8357f08caeb8fd585599ea97894fd5d9d56e /pkgs/os-specific/linux/util-linux
parentc13664af04da5b97dc8f85c883d8d32ea6efb34a (diff)
downloadnixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.tar
nixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.tar.gz
nixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.tar.bz2
nixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.tar.lz
nixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.tar.xz
nixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.tar.zst
nixpkgs-286c36d7370763eb8222659ddd8f67773398c3c1.zip
utillinux: fix "fstrim --all"
Diffstat (limited to 'pkgs/os-specific/linux/util-linux')
-rw-r--r--pkgs/os-specific/linux/util-linux/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
index 01bd8beea3d..79f63f8c27a 100644
--- a/pkgs/os-specific/linux/util-linux/default.nix
+++ b/pkgs/os-specific/linux/util-linux/default.nix
@@ -1,19 +1,28 @@
 { lib, stdenv, fetchurl, pkgconfig, zlib, fetchpatch, shadow
 , ncurses ? null, perl ? null, pam, systemd, minimal ? false }:
 
-stdenv.mkDerivation rec {
-  name = "util-linux-${version}";
+let
   version = lib.concatStringsSep "." ([ majorVersion ]
     ++ lib.optional (patchVersion != "") patchVersion);
   majorVersion = "2.29";
   patchVersion = "2";
 
+  fstrimPatch = fetchpatch {
+    url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/patch/?id=155d48f590a50bb5dc265162ff2f9a971daed543";
+    sha256 = "1wj0fj3iwaimr6p8wxg6l2i1hjyrfgcwcxziyxqz8acxba7k6zxh";
+  };
+in stdenv.mkDerivation rec {
+  name = "util-linux-${version}";
+
   src = fetchurl {
     url = "mirror://kernel/linux/utils/util-linux/v${majorVersion}/${name}.tar.xz";
     sha256 = "1qz81w8vzrmy8xn9yx7ls4amkbgwx6vr62pl6kv9g7r0g3ba9kmc";
   };
 
-  patches = [ ./rtcwake-search-PATH-for-shutdown.patch ];
+  patches = [
+    ./rtcwake-search-PATH-for-shutdown.patch
+    fstrimPatch
+  ];
 
   outputs = [ "bin" "dev" "out" "man" ];