git.iko.soy/typeable/nixpkgs
on master help sign in
utillinux: fix "fstrim --all"
commit286c36d7370763eb8222659ddd8f67773398c3c1 authorgnidorah <gnidorah@users.noreply.github.com> dateThu 15 Jun 2017, 14:05 (9 years ago) parentc13664a
1 file changed+12−3
pkgs/os-specific/linux/util-linux/default.nix+12−3
pkgs/os-specific/linux/util-linux/default.nix+12−3
@@ -1,19 +1,28 @@
11{ lib, stdenv, fetchurl, pkgconfig, zlib, fetchpatch, shadow
22, ncurses ? null, perl ? null, pam, systemd, minimal ? false }:
33
4−stdenv.mkDerivation rec {
5− name = "util-linux-${version}";
4+let
65 version = lib.concatStringsSep "." ([ majorVersion ]
76 ++ lib.optional (patchVersion != "") patchVersion);
87 majorVersion = "2.29";
98 patchVersion = "2";
109
10+ fstrimPatch = fetchpatch {
11+ url = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/patch/?id=155d48f590a50bb5dc265162ff2f9a971daed543";
12+ sha256 = "1wj0fj3iwaimr6p8wxg6l2i1hjyrfgcwcxziyxqz8acxba7k6zxh";
13+ };
14+in stdenv.mkDerivation rec {
15+ name = "util-linux-${version}";
16+
1117 src = fetchurl {
1218 url = "mirror://kernel/linux/utils/util-linux/v${majorVersion}/${name}.tar.xz";
1319 sha256 = "1qz81w8vzrmy8xn9yx7ls4amkbgwx6vr62pl6kv9g7r0g3ba9kmc";
1420 };
1521
16− patches = [ ./rtcwake-search-PATH-for-shutdown.patch ];
22+ patches = [
23+ ./rtcwake-search-PATH-for-shutdown.patch
24+ fstrimPatch
25+ ];
1726
1827 outputs = [ "bin" "dev" "out" "man" ];
1928