12 url = "https://github.com/misterunknown/ifm/releases/download/v${version}/cdn.ifm.php";
13 hash = "sha256-37WbRM6D7JGmd//06zMhxMGIh8ioY8vRUmxX4OHgqBE=";
16 serve_script = writeShellScript "ifm-serve" ''
18 echo "Usage: $0 <listen address> <port> <data directory>";
22 SERVE_DIR=$(dirname "$0")/../php/
23 IFM_ROOT_DIR="$3" ${lib.getExe php83} -S "$1:$2" -t "$SERVE_DIR"
34 mkdir -p $out/bin $out/php
35 cp $src $out/php/index.php
36 cp ${serve_script} $out/bin/ifm
41 inherit (nixosTests) ifm;
45 description = "Improved File Manager, a single-file web-based filemanager";
47 The IFM is a web-based filemanager, which comes as a single file solution using HTML5, CSS3, JavaScript and PHP.
49 homepage = "https://github.com/misterunknown/ifm";
50 changelog = "https://github.com/misterunknown/ifm/releases/tag/v${version}";
51 license = lib.licenses.mit;
52 maintainers = with lib.maintainers; [ litchipi ];