Pin khal to last working version
khal doesn't build anymore, see: https://github.com/NixOS/nixpkgs/issues/205014 That's why I've pinned it to last working version, see: https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
This commit is contained in:
parent
c2efd0a5b1
commit
de935f101a
|
@ -5,11 +5,19 @@ with lib;
|
|||
let
|
||||
cfg = config.programs.khal;
|
||||
|
||||
# See: https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
|
||||
# See: https://github.com/NixOS/nixpkgs/issues/205014
|
||||
workingKhalPkgs = import (builtins.fetchTarball {
|
||||
name = "nixpkgs-working-khal";
|
||||
url = "https://github.com/nixos/nixpkgs/archive/54582ac93fa8a1784bc8a2009a6cc6efe5a9106f.tar.gz";
|
||||
sha256 = "1ggfbg44xw8zwlwimgl04di5c9h9rfm27c80w9qjq378sr5sr8ly";
|
||||
}) {};
|
||||
|
||||
notificationScript = pkgs.writeShellApplication {
|
||||
name = "khal-notification";
|
||||
text = ''
|
||||
date=$(date "+%H:%M:00")
|
||||
events=$(${pkgs.khal}/bin/khal list --notstarted "$date" "$1")
|
||||
events=$(${workingKhalPkgs.khal}/bin/khal list --notstarted "$date" "$1")
|
||||
if [ -z "$events" ]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
@ -31,7 +39,7 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.khal;
|
||||
default = workingKhalPkgs.khal;
|
||||
description = "khal package to install.";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue