about summary refs log tree commit diff stats
path: root/pkgs/by-name/fu/fupdate-flake
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/fu/fupdate-flake')
-rwxr-xr-xpkgs/by-name/fu/fupdate-flake/fupdate-flake.sh14
-rw-r--r--pkgs/by-name/fu/fupdate-flake/package.nix15
2 files changed, 21 insertions, 8 deletions
diff --git a/pkgs/by-name/fu/fupdate-flake/fupdate-flake.sh b/pkgs/by-name/fu/fupdate-flake/fupdate-flake.sh
index f63d7de0..00c1e443 100755
--- a/pkgs/by-name/fu/fupdate-flake/fupdate-flake.sh
+++ b/pkgs/by-name/fu/fupdate-flake/fupdate-flake.sh
@@ -1,5 +1,15 @@
 #! /usr/bin/env sh
 
+# 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>.
+
 UPDATE_SCRIPT_NAME="update.sh"
 
 info() {
@@ -159,7 +169,7 @@ update() {
     "$update_script" "$@"
 
     if [ -f "flake.lock" ] && grep '[^0-9]_[0-9]' flake.lock --quiet; then
-        batgrep '[^0-9]_[0-9]' flake.lock
+        grep '[^0-9]_[0-9]' flake.lock
         die "Your flake.nix contains duplicate inputs!"
     fi
 }
@@ -179,6 +189,6 @@ main() {
     fi
 }
 
-main
+main "$@"
 
 # vim: ft=sh
diff --git a/pkgs/by-name/fu/fupdate-flake/package.nix b/pkgs/by-name/fu/fupdate-flake/package.nix
index 5b2d7d29..4e21cd23 100644
--- a/pkgs/by-name/fu/fupdate-flake/package.nix
+++ b/pkgs/by-name/fu/fupdate-flake/package.nix
@@ -1,12 +1,18 @@
+# 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>.
 {
   writeShellApplication,
   # Dependencies
   coreutils,
   fd,
   gnugrep,
-  bat-extras, # For `batgrep`
-  bat, # used by batgrep
-  gnused, # required by batgrep
   git,
 }:
 writeShellApplication {
@@ -20,9 +26,6 @@ writeShellApplication {
     coreutils
     fd
     gnugrep
-    bat-extras.batgrep
-    bat # Used by `batgrep`
-    gnused # Required by `batgrep`
     git
   ];
 }