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
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libsForQt5,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "calaos_installer";
|
|
version = "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "calaos";
|
|
repo = "calaos_installer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-e/f58VtGmKukdv4rIrGljXhA9d/xUycM5V6I1FT5qeY=";
|
|
};
|
|
|
|
buildInputs = [ libsForQt5.qtbase ];
|
|
nativeBuildInputs = with libsForQt5; [
|
|
qmake
|
|
wrapQtAppsHook
|
|
qttools
|
|
];
|
|
|
|
qmakeFlags = [ "REVISION=${finalAttrs.version}" ];
|
|
|
|
installPhase =
|
|
if stdenv.hostPlatform.isDarwin then
|
|
''
|
|
mkdir -p $out/Applications
|
|
cp -a calaos_installer.app $out/Applications
|
|
''
|
|
else
|
|
''
|
|
mkdir -p $out/bin
|
|
cp -a calaos_installer $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Calaos Installer, a tool to create calaos configuration";
|
|
mainProgram = "calaos_installer";
|
|
homepage = "https://www.calaos.fr/";
|
|
downloadPage = "https://github.com/calaos/calaos_installer/";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ tiramiseb ];
|
|
};
|
|
})
|