nixpkgs/pkgs/misc/calaos/installer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
935 B
Nix
Raw Normal View History

{ mkDerivation, lib, stdenv, fetchFromGitHub, qmake, qttools, qtbase }:
2018-03-18 10:42:07 +00:00
mkDerivation rec {
pname = "calaos_installer";
2023-08-20 22:47:52 +00:00
version = "3.11";
2018-03-18 10:42:07 +00:00
src = fetchFromGitHub {
owner = "calaos";
repo = "calaos_installer";
rev = "v${version}";
2023-08-20 22:47:52 +00:00
sha256 = "sha256-e/f58VtGmKukdv4rIrGljXhA9d/xUycM5V6I1FT5qeY=";
2018-03-18 10:42:07 +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 ''
2018-03-18 10:42:07 +00:00
mkdir -p $out/bin
cp -a calaos_installer $out/bin
'';
meta = with lib; {
2018-03-18 10:42:07 +00:00
description = "Calaos Installer, a tool to create calaos configuration";
mainProgram = "calaos_installer";
homepage = "https://www.calaos.fr/";
2018-03-18 10:42:07 +00:00
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ tiramiseb ];
};
}