diff options
Diffstat (limited to 'pkgs/by-name/st')
| -rw-r--r-- | pkgs/by-name/st/stamp/package.nix | 20 | ||||
| -rw-r--r-- | pkgs/by-name/st/stamp/package.unstable.nix | 29 | ||||
| -rwxr-xr-x | pkgs/by-name/st/stamp/stamp.sh | 16 |
3 files changed, 43 insertions, 22 deletions
diff --git a/pkgs/by-name/st/stamp/package.nix b/pkgs/by-name/st/stamp/package.nix deleted file mode 100644 index 703f73e3..00000000 --- a/pkgs/by-name/st/stamp/package.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - sysLib, - findutils, - fd, - reuse, - git, -}: -sysLib.writeShellScript { - name = "stamp"; - src = ./stamp.sh; - generateCompletions = false; - keepPath = false; - - dependencies = [ - findutils - fd - reuse - git - ]; -} diff --git a/pkgs/by-name/st/stamp/package.unstable.nix b/pkgs/by-name/st/stamp/package.unstable.nix new file mode 100644 index 00000000..871d531c --- /dev/null +++ b/pkgs/by-name/st/stamp/package.unstable.nix @@ -0,0 +1,29 @@ +# 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, + git, + reuse, +}: +writeShellApplication { + name = "stamp"; + text = builtins.readFile ./stamp.sh; + inheritPath = false; + + runtimeInputs = [ + coreutils + fd + git + reuse + ]; +} diff --git a/pkgs/by-name/st/stamp/stamp.sh b/pkgs/by-name/st/stamp/stamp.sh index 0aa6c281..5f17b2aa 100755 --- a/pkgs/by-name/st/stamp/stamp.sh +++ b/pkgs/by-name/st/stamp/stamp.sh @@ -1,7 +1,19 @@ #!/usr/bin/env dash -# shellcheck source=/dev/null -SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH +# 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>. + +die() { + echo "Error: $1" + exit 1 +} help() { cat <<EOF |
