git.iko.soy/typeable/nixpkgs
on master help sign in
localtime: remove dependency on go
commit48d4cef9d317eaae8c47962111d75a3a162441db authorobadz <obadz-git@obadz.com> dateThu 5 Apr 2018, 23:15 (9 years ago) parentd0d0502
1 file changed+7−2
pkgs/tools/system/localtime/default.nix+7−2
pkgs/tools/system/localtime/default.nix+7−2
@@ -1,4 +1,4 @@
1−{ stdenv, go, systemd, polkit, fetchFromGitHub, m4 }:
1+{ stdenv, go, systemd, polkit, fetchFromGitHub, m4, removeReferencesTo }:
22
33stdenv.mkDerivation {
44 name = "localtime-2017-11-07";
@@ -10,10 +10,15 @@ stdenv.mkDerivation {
1010 sha256 = "04fyna8p7q7skzx9fzmncd6gx7x5pwa9jh8a84hpljlvj0kldfs8";
1111 };
1212
13− buildInputs = [ go systemd polkit m4 ];
13+ buildInputs = [ go systemd polkit m4 removeReferencesTo ];
14+ disallowedRequisites = [ go ];
1415
1516 makeFlags = [ "PREFIX=$(out)" ];
1617
18+ preFixup = ''
19+ find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
20+ '';
21+
1722 meta = {
1823 description = "A daemon for keeping the system timezone up-to-date based on the current location";
1924 homepage = https://github.com/Stebalien/localtime;