summaryrefslogtreecommitdiff
path: root/nix/theme.nix
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
committercashmere <cashmere@autistici.org>2026-09-04 09:05:24 +0200
commit4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch)
treec296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /nix/theme.nix
downloadrelic-4f49b16079b27d7ce633619e4cddfdf2bffbc952.tar.gz
initial commitHEADmaster
Diffstat (limited to 'nix/theme.nix')
-rw-r--r--nix/theme.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nix/theme.nix b/nix/theme.nix
new file mode 100644
index 0000000..e92e087
--- /dev/null
+++ b/nix/theme.nix
@@ -0,0 +1,19 @@
+{ lib, runCommand }:
+
+let
+ package = builtins.fromJSON (builtins.readFile ../tools/copland/package.json);
+in
+runCommand "copland-fossil-theme-${package.version}"
+ {
+ meta = {
+ description = "Copland skin for Fossil SCM";
+ platforms = lib.platforms.all;
+ };
+ }
+ ''
+ destination="$out/share/fossil/skins/copland"
+ mkdir -p "$destination"
+ cp ${../skins/copland}/*.txt "$destination/"
+ cp ${../skins/copland}/README.md "$destination/"
+ cp ${../tools/copland/dist/copland-skin.config} "$destination/copland-skin.config"
+ ''