14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
21 rev = "v${finalAttrs.version}";
22 hash = "sha256-RKAIZNty+iXeMfsjDOlOyvngx4XU5CSEi0Wap21lFAI=";
39 env.NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath finalAttrs.buildInputs}";
42 patchShebangs build.sh install/linux/install.sh
43 substituteInPlace build.sh \
44 --replace '$(which lazbuild)' '"${lazarus}/bin/lazbuild --lazarusdir=${lazarus}/share/lazarus"'
45 substituteInPlace install/linux/install.sh \
46 --replace '$DC_INSTALL_PREFIX/usr' '$DC_INSTALL_PREFIX'
52 export HOME=$(mktemp -d)
53 ./build.sh release qt5
61 install/linux/install.sh -I $out
67 homepage = "https://doublecmd.sourceforge.io/";
68 description = "Two-panel graphical file manager written in Pascal";
69 license = lib.licenses.gpl2Plus;
70 mainProgram = "doublecmd";
71 maintainers = with lib.maintainers; [ AndersonTorres ];
72 platforms = lib.platforms.linux;
75 # TODO: deal with other platforms too