about summary refs log tree commit diff stats
path: root/pkgs/standalone_pkgs.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-07 16:58:28 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-07 16:59:02 +0200
commit395d39c80c4281840755e54eec65bcf157eae509 (patch)
tree6d2e4841d72584196c1780648755fa6c8e199fc5 /pkgs/standalone_pkgs.nix
parentpkgs/stalwart-mail-patched: Use different native-ca-roots patch (diff)
downloadnixos-server-395d39c80c4281840755e54eec65bcf157eae509.zip
pkgs/stalwart-mail-patched/spamfilter: Provide infrastructure to update it
Otherwise, this package will never be updated.
Diffstat (limited to '')
-rw-r--r--pkgs/standalone_pkgs.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/standalone_pkgs.nix b/pkgs/standalone_pkgs.nix
new file mode 100644
index 0000000..1eeaad3
--- /dev/null
+++ b/pkgs/standalone_pkgs.nix
@@ -0,0 +1,11 @@
+# `nix-update` wants a entry point similar to `release.nix`.
+# This means that we have to fetch our dependencies on our own.
+{}: let
+  get = input: import (builtins.fetchTree input.locked).outPath {};
+
+  lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes;
+  pkgs = get lock.nixpkgs;
+  pkgsUnstable = get lock.nixpkgs-unstable;
+  nixLib = get lock.library;
+in
+  import ./default.nix {inherit pkgs pkgsUnstable nixLib;}