about summary refs log tree commit diff stats
path: root/pkgs/by-name/sn/snap-sync-forked
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/sn/snap-sync-forked/package.nix18
-rwxr-xr-xpkgs/by-name/sn/snap-sync-forked/snap-sync-forked.sh27
2 files changed, 24 insertions, 21 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
diff --git a/pkgs/by-name/sn/snap-sync-forked/snap-sync-forked.sh b/pkgs/by-name/sn/snap-sync-forked/snap-sync-forked.sh
index 3d9c1ac9..cefd7c84 100755
--- a/pkgs/by-name/sn/snap-sync-forked/snap-sync-forked.sh
+++ b/pkgs/by-name/sn/snap-sync-forked/snap-sync-forked.sh
@@ -1,25 +1,18 @@
 #!/usr/bin/env bash
 
-# shellcheck source=/dev/null
-SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
-
+# nixos-config - My current NixOS configuration
 #
-# snap-sync
-# https://github.com/wesbarnett/snap-sync
 # Copyright (C) 2016-2021 Wes Barnett
+# 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>.
 
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
+# snap-sync
+# https://github.com/wesbarnett/snap-sync
 
 # -------------------------------------------------------------------------