1 { lib, stdenv, fetchFromGitHub, writeText, conf ? null }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 hash = "sha256-VwPux6n+azpR4qDkzZJia95pJJOaFDBBoz6/VwlC0zw=";
14 configFile = lib.optionalString (conf!=null) (writeText "config.def.h" conf);
16 postPatch = lib.optionalString (conf!=null) "cp ${configFile} config.def.h";
18 makeFlags = [ "CC:=$(CC)" ];
20 installFlags = [ "PREFIX=$(out)" ];
23 description = "Simple file manager";
24 homepage = "https://github.com/afify/sfm";
25 license = licenses.isc;
26 platforms = platforms.unix;
27 maintainers = with maintainers; [ sikmir ];