summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
author·𐑑𐑴𐑕𐑑𐑩𐑀2026-01-01 02:46:28 +0000
committer·𐑑𐑴𐑕𐑑𐑩𐑀2026-01-01 02:46:28 +0000
commit9ee78d600388f16c9980461bbace0d21ace7d717 (patch)
tree1542337bd90277023cccf3e80d70b14c9e461456 /nix
parentd444bc2cb08ca25e8028ff7335092e31963365a1 (diff)
downloadnixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.tar
nixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.tar.gz
nixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.tar.bz2
nixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.tar.lz
nixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.tar.xz
nixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.tar.zst
nixtaml-9ee78d600388f16c9980461bbace0d21ace7d717.zip
nix/tamal/default.nix: update with newest syntax
Diffstat (limited to 'nix')
-rw-r--r--nix/tamal/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nix/tamal/default.nix b/nix/tamal/default.nix
index ee07ccd..65ad35b 100644
--- a/nix/tamal/default.nix
+++ b/nix/tamal/default.nix
@@ -1,5 +1,5 @@
/*
-SPDX-FileCopyrightText: 2025 toastal
+SPDX-FileCopyrightText: 2025–2026 toastal
SPDX-License-Identifier: ISC
Permission to use, copy, modify, and/or distribute this software for any
@@ -39,7 +39,7 @@ let
let failed-urls' = [ url ] ++ failed-urls; in
if builtins.length urls <= 0 then
let fus = builtins.concatStringsSep " " failed-urls'; in
- builtins.throw "Input γ€Œ${name}」fetchable @ [ ${fus} ]"
+ throw "Input γ€Œ${name}」fetchable @ [ ${fus} ]"
else
try-fetch' failed-urls' (builtins.head urls) (builtins.tail urls);
in
@@ -94,8 +94,8 @@ let
value = builtins.elemAt kind.rf 1;
in
if type == 0 then
- let path = builtins.elemAt value 1; in
- assert (lib.hasSuffix ".txt" path);
+ let ctx_path = builtins.elemAt value 1; in
+ assert (lib.hasSuffix ".txt" ctx_path);
let
txt-files = lib.sourceFilesBySuffices ./. [ ".txt" ];
dir = lib.fileset.toSource {
@@ -103,7 +103,7 @@ let
fileset = lib.fileset.fromSource txt-files;
};
in
- {context = "${dir}/${path}";}
+ {context = "${dir}/${ctx_path}";}
else if type == 1 then
{rev = value;}
else