diff options
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/co/comments/.envrc (renamed from pkgs/sources/comments/.envrc) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/.gitignore (renamed from pkgs/sources/comments/.gitignore) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/Cargo.lock (renamed from pkgs/sources/comments/Cargo.lock) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/Cargo.toml (renamed from pkgs/sources/comments/Cargo.toml) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/flake.lock (renamed from pkgs/sources/comments/flake.lock) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/flake.nix (renamed from pkgs/sources/comments/flake.nix) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/package.nix (renamed from pkgs/sources/comments/comments.nix) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/src/info_json.rs (renamed from pkgs/sources/comments/src/info_json.rs) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/comments/src/main.rs (renamed from pkgs/sources/comments/src/main.rs) | 0 | ||||
-rwxr-xr-x | pkgs/by-name/co/comments/update.sh (renamed from pkgs/sources/comments/update.sh) | 0 | ||||
-rwxr-xr-x | pkgs/by-name/co/con2pdf/con2pdf.sh (renamed from pkgs/sources/scripts/source/apps/con2pdf.sh) | 0 | ||||
-rw-r--r-- | pkgs/by-name/co/con2pdf/package.nix | 33 |
12 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/sources/comments/.envrc b/pkgs/by-name/co/comments/.envrc index 2b5fbb29..2b5fbb29 100644 --- a/pkgs/sources/comments/.envrc +++ b/pkgs/by-name/co/comments/.envrc diff --git a/pkgs/sources/comments/.gitignore b/pkgs/by-name/co/comments/.gitignore index c84fa049..c84fa049 100644 --- a/pkgs/sources/comments/.gitignore +++ b/pkgs/by-name/co/comments/.gitignore diff --git a/pkgs/sources/comments/Cargo.lock b/pkgs/by-name/co/comments/Cargo.lock index 54f19c46..54f19c46 100644 --- a/pkgs/sources/comments/Cargo.lock +++ b/pkgs/by-name/co/comments/Cargo.lock diff --git a/pkgs/sources/comments/Cargo.toml b/pkgs/by-name/co/comments/Cargo.toml index 3ae3aa4c..3ae3aa4c 100644 --- a/pkgs/sources/comments/Cargo.toml +++ b/pkgs/by-name/co/comments/Cargo.toml diff --git a/pkgs/sources/comments/flake.lock b/pkgs/by-name/co/comments/flake.lock index 50494465..50494465 100644 --- a/pkgs/sources/comments/flake.lock +++ b/pkgs/by-name/co/comments/flake.lock diff --git a/pkgs/sources/comments/flake.nix b/pkgs/by-name/co/comments/flake.nix index f5e44a65..f5e44a65 100644 --- a/pkgs/sources/comments/flake.nix +++ b/pkgs/by-name/co/comments/flake.nix diff --git a/pkgs/sources/comments/comments.nix b/pkgs/by-name/co/comments/package.nix index e8a33bff..e8a33bff 100644 --- a/pkgs/sources/comments/comments.nix +++ b/pkgs/by-name/co/comments/package.nix diff --git a/pkgs/sources/comments/src/info_json.rs b/pkgs/by-name/co/comments/src/info_json.rs index eca4fae3..eca4fae3 100644 --- a/pkgs/sources/comments/src/info_json.rs +++ b/pkgs/by-name/co/comments/src/info_json.rs diff --git a/pkgs/sources/comments/src/main.rs b/pkgs/by-name/co/comments/src/main.rs index 6e4f72e9..6e4f72e9 100644 --- a/pkgs/sources/comments/src/main.rs +++ b/pkgs/by-name/co/comments/src/main.rs diff --git a/pkgs/sources/comments/update.sh b/pkgs/by-name/co/comments/update.sh index e500bb23..e500bb23 100755 --- a/pkgs/sources/comments/update.sh +++ b/pkgs/by-name/co/comments/update.sh diff --git a/pkgs/sources/scripts/source/apps/con2pdf.sh b/pkgs/by-name/co/con2pdf/con2pdf.sh index 08bf8998..08bf8998 100755 --- a/pkgs/sources/scripts/source/apps/con2pdf.sh +++ b/pkgs/by-name/co/con2pdf/con2pdf.sh diff --git a/pkgs/by-name/co/con2pdf/package.nix b/pkgs/by-name/co/con2pdf/package.nix new file mode 100644 index 00000000..8eb994fd --- /dev/null +++ b/pkgs/by-name/co/con2pdf/package.nix @@ -0,0 +1,33 @@ +{ + sysLib, + writeText, + # dependencies + sane-backends, + imagemagick, + coreutils, + fd, +}: +sysLib.writeShellScript { + name = "con2pdf"; + src = ./con2pdf.sh; + generateCompletions = true; + keepPath = false; + dependencies = [ + sane-backends + imagemagick + coreutils + fd + ]; + replacementStrings = { + DEVICE_FUNCTION = + # This is here, because escaping the whole function, to use it in the shell script + # directly just isn't possible + writeText "DEVICE_FUNCTION" + /* + bash + */ + '' + scanimage -L | awk 'BEGIN { FS = "`" } { gsub(/'.*/, "", $2); print $2 }' + ''; + }; +} |