From 5ec92ad34f50d366e5e94da05a0b6c276c068836 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 27 Apr 2025 21:47:06 +0200 Subject: pkgs/lf-make-map: Add copyright headers --- pkgs/by-name/lf/lf-make-map/Cargo.lock | 3 +-- pkgs/by-name/lf/lf-make-map/src/mapping/map_key.rs | 10 ++++++++++ pkgs/by-name/lf/lf-make-map/src/mapping/mod.rs | 12 +++++++++++- pkgs/by-name/lf/lf-make-map/tests/output.old.license | 9 +++++++++ pkgs/by-name/lf/lf-make-map/tests/test_simple.sh | 10 ++++++++++ 5 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 pkgs/by-name/lf/lf-make-map/tests/output.old.license diff --git a/pkgs/by-name/lf/lf-make-map/Cargo.lock b/pkgs/by-name/lf/lf-make-map/Cargo.lock index 51cbf6ad..20779f60 100644 --- a/pkgs/by-name/lf/lf-make-map/Cargo.lock +++ b/pkgs/by-name/lf/lf-make-map/Cargo.lock @@ -1,5 +1,3 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. # nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz @@ -9,6 +7,7 @@ # # You should have received a copy of the License along with this program. # If not, see . + version = 4 [[package]] diff --git a/pkgs/by-name/lf/lf-make-map/src/mapping/map_key.rs b/pkgs/by-name/lf/lf-make-map/src/mapping/map_key.rs index e66a1635..10b612fd 100644 --- a/pkgs/by-name/lf/lf-make-map/src/mapping/map_key.rs +++ b/pkgs/by-name/lf/lf-make-map/src/mapping/map_key.rs @@ -1,3 +1,13 @@ +// nixos-config - My current NixOS configuration +// +// Copyright (C) 2025 Benedikt Peetz +// 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 . + use std::fmt::Write; use anyhow::bail; diff --git a/pkgs/by-name/lf/lf-make-map/src/mapping/mod.rs b/pkgs/by-name/lf/lf-make-map/src/mapping/mod.rs index d869f883..a5f94067 100644 --- a/pkgs/by-name/lf/lf-make-map/src/mapping/mod.rs +++ b/pkgs/by-name/lf/lf-make-map/src/mapping/mod.rs @@ -1,6 +1,16 @@ +// nixos-config - My current NixOS configuration +// +// Copyright (C) 2025 Benedikt Peetz +// 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 . + use anyhow::Result; use keymaps::map_tree::{Node, Trie}; -use log::{Level, debug, log_enabled, trace}; +use log::{debug, log_enabled, trace, Level}; use map_key::MapKey; pub mod lf_mapping; diff --git a/pkgs/by-name/lf/lf-make-map/tests/output.old.license b/pkgs/by-name/lf/lf-make-map/tests/output.old.license new file mode 100644 index 00000000..eae6a84c --- /dev/null +++ b/pkgs/by-name/lf/lf-make-map/tests/output.old.license @@ -0,0 +1,9 @@ +nixos-config - My current NixOS configuration + +Copyright (C) 2025 Benedikt Peetz +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 . diff --git a/pkgs/by-name/lf/lf-make-map/tests/test_simple.sh b/pkgs/by-name/lf/lf-make-map/tests/test_simple.sh index 5c7dd4a8..79ba9db2 100755 --- a/pkgs/by-name/lf/lf-make-map/tests/test_simple.sh +++ b/pkgs/by-name/lf/lf-make-map/tests/test_simple.sh @@ -1,5 +1,15 @@ #! /usr/bin/env sh +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# 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 . + # We need to hard code this, so that our output matches the golden sample. base="/tmp/tmp.DfcgjemfCG" test="$(mktemp --directory)" -- cgit 1.4.1