3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/calaos/installer/default.nix
freezeboy 6683f3bf65 calaos_installer: 3.1 -> 3.5
Also migrate to Qt 5.15
2020-11-20 22:24:18 +01:00

35 lines
891 B
Nix

{ mkDerivation, stdenv, fetchFromGitHub, qmake, qttools, qtbase }:
mkDerivation rec {
pname = "calaos_installer";
version = "3.5";
src = fetchFromGitHub {
owner = "calaos";
repo = "calaos_installer";
rev = "v${version}";
sha256 = "hx7XVF2iueKFR67U0EvSK1vYZnJBnuOpUOkSjx7h1XY=";
};
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
'';
meta = with stdenv.lib; {
description = "Calaos Installer, a tool to create calaos configuration";
homepage = "https://www.calaos.fr/";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ tiramiseb ];
};
}