Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
77 lines
1.5 KiB
Nix
77 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
dbus,
|
|
fpc,
|
|
getopt,
|
|
glib,
|
|
lazarus,
|
|
libX11,
|
|
libsForQt5,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "doublecmd";
|
|
version = "1.1.28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "doublecmd";
|
|
repo = "doublecmd";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-RbDAWpJy4+7VNJkuY+LB27nQFbThUCaH+Bcsqdrlp5g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
fpc
|
|
getopt
|
|
lazarus
|
|
libsForQt5.wrapQtAppsHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
glib
|
|
libX11
|
|
libsForQt5.libqtpas
|
|
];
|
|
|
|
env.NIX_LDFLAGS = "--as-needed -rpath ${lib.makeLibraryPath finalAttrs.buildInputs}";
|
|
|
|
postPatch = ''
|
|
patchShebangs build.sh install/linux/install.sh
|
|
substituteInPlace build.sh \
|
|
--replace-warn '$(which lazbuild)' '"${lazarus}/bin/lazbuild --lazarusdir=${lazarus}/share/lazarus"'
|
|
substituteInPlace install/linux/install.sh \
|
|
--replace-warn '$DC_INSTALL_PREFIX/usr' '$DC_INSTALL_PREFIX'
|
|
'';
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
./build.sh release qt5
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install/linux/install.sh -I $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://doublecmd.sourceforge.io/";
|
|
description = "Two-panel graphical file manager written in Pascal";
|
|
license = lib.licenses.gpl2Plus;
|
|
mainProgram = "doublecmd";
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|
|
# TODO: deal with other platforms too
|