summaryrefslogtreecommitdiff
path: root/nix/theme.nix
diff options
context:
space:
mode:
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"
+ ''