about summary refs log tree commit diff stats
path: root/pkgs/by-name/sn/snap-sync-forked/package.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/sn/snap-sync-forked/package.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/by-name/sn/snap-sync-forked/package.nix b/pkgs/by-name/sn/snap-sync-forked/package.nix
index b3f40b24..4be1b222 100644
--- a/pkgs/by-name/sn/snap-sync-forked/package.nix
+++ b/pkgs/by-name/sn/snap-sync-forked/package.nix
@@ -1,5 +1,14 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 {
-  sysLib,
+  writeShellApplication,
   bash,
   btrfs-progs,
   coreutils,
@@ -14,10 +23,11 @@
   rsync,
   sudo,
 }:
-sysLib.writeShellScript {
+writeShellApplication {
   name = "snap-sync-forked";
-  src = ./snap-sync-forked.sh;
-  dependencies = [
+  text = builtins.readFile ./snap-sync-forked.sh;
+  inheritPath = false;
+  runtimeInputs = [
     bash
     btrfs-progs
     coreutils