2021-01-15 22:18:51 +00:00
|
|
|
{ mkDerivation, lib, stdenv, fetchFromGitHub, qmake, qttools, qtbase }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2020-11-21 19:51:51 +00:00
|
|
|
pname = "calaos_installer";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "calaos";
|
|
|
|
repo = "calaos_installer";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-e/f58VtGmKukdv4rIrGljXhA9d/xUycM5V6I1FT5qeY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
qmakeFlags = [ "REVISION=${version}" ];
|
|
|
|
|
|
|
|
installPhase = if stdenv.isDarwin then ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -a calaos_installer.app $out/Applications
|
|
|
|
'' else ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a calaos_installer $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Calaos Installer, a tool to create calaos configuration";
|
|
|
|
homepage = "https://www.calaos.fr/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ tiramiseb ];
|
|
|
|
};
|
|
|
|
}
|