2021-01-11 08:54:33 +01:00
|
|
|
{ mkDerivation, lib, stdenv, fetchFromGitHub, qmake, qttools, qtbase }:
|
2018-03-18 11:42:07 +01:00
|
|
|
|
2020-04-07 22:24:28 +02:00
|
|
|
mkDerivation rec {
|
2020-11-05 16:19:32 +01:00
|
|
|
pname = "calaos_installer";
|
|
|
|
version = "3.5";
|
2018-03-18 11:42:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "calaos";
|
|
|
|
repo = "calaos_installer";
|
|
|
|
rev = "v${version}";
|
2020-11-05 16:19:32 +01:00
|
|
|
sha256 = "hx7XVF2iueKFR67U0EvSK1vYZnJBnuOpUOkSjx7h1XY=";
|
2018-03-18 11:42:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
qmakeFlags = [ "REVISION=${version}" ];
|
|
|
|
|
2018-09-13 23:40:30 +02:00
|
|
|
installPhase = if stdenv.isDarwin then ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -a calaos_installer.app $out/Applications
|
|
|
|
'' else ''
|
2018-03-18 11:42:07 +01:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a calaos_installer $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-03-18 11:42:07 +01:00
|
|
|
description = "Calaos Installer, a tool to create calaos configuration";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.calaos.fr/";
|
2018-03-18 11:42:07 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ tiramiseb ];
|
|
|
|
};
|
|
|
|
}
|