-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
49 lines (37 loc) · 1.19 KB
/
default.nix
File metadata and controls
49 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
stdenv.mkDerivation rec {
pname = "conv";
version = "1.0.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
imagemagick # For image conversions
ffmpeg # For video conversions
pandoc # For document conversions
];
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/doc/${pname}
install -Dm755 conv.sh $out/bin/conv
wrapProgram $out/bin/conv \
--prefix PATH : ${lib.makeBinPath buildInputs}
cp README.md $out/share/doc/${pname}/README.md
'';
meta = with lib; {
description = "A versatile file format conversion utility";
longDescription = ''
File Converter is a bash script that provides a unified interface for
converting between various file formats. It supports:
- Image formats (jpg, png, gif, etc.)
- Video formats (mp4, avi, mkv, etc.)
- Document formats (pdf, docx, md, etc.)
The tool provides both single-file and batch conversion capabilities.
'';
homepage = "https://github.com/TomJuri/conv";
license = licenses.mit;
platforms = platforms.unix;
mainProgram = "conv";
};
}