diff options
author | obadz <obadz-git@obadz.com> | 2018-04-05 23:15:20 +0100 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2018-04-05 23:17:18 +0100 |
commit | 48d4cef9d317eaae8c47962111d75a3a162441db (patch) | |
tree | 0548345046468332de6a622cf80a71e8687d377d | |
parent | d0d05024d10b79ce893509194a1c3bfbc03721a8 (diff) | |
download | nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.tar nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.tar.gz nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.tar.bz2 nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.tar.lz nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.tar.xz nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.tar.zst nixlib-48d4cef9d317eaae8c47962111d75a3a162441db.zip |
localtime: remove dependency on go
-rw-r--r-- | pkgs/tools/system/localtime/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/system/localtime/default.nix b/pkgs/tools/system/localtime/default.nix index d9cfc77203e1..c49054f3a67c 100644 --- a/pkgs/tools/system/localtime/default.nix +++ b/pkgs/tools/system/localtime/default.nix @@ -1,4 +1,4 @@ -{ stdenv, go, systemd, polkit, fetchFromGitHub, m4 }: +{ stdenv, go, systemd, polkit, fetchFromGitHub, m4, removeReferencesTo }: stdenv.mkDerivation { name = "localtime-2017-11-07"; @@ -10,10 +10,15 @@ stdenv.mkDerivation { sha256 = "04fyna8p7q7skzx9fzmncd6gx7x5pwa9jh8a84hpljlvj0kldfs8"; }; - buildInputs = [ go systemd polkit m4 ]; + buildInputs = [ go systemd polkit m4 removeReferencesTo ]; + disallowedRequisites = [ go ]; makeFlags = [ "PREFIX=$(out)" ]; + preFixup = '' + find $out/bin -type f -exec remove-references-to -t ${go} '{}' + + ''; + meta = { description = "A daemon for keeping the system timezone up-to-date based on the current location"; homepage = https://github.com/Stebalien/localtime; |