mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
35 lines
935 B
Nix
35 lines
935 B
Nix
{ mkDerivation, lib, stdenv, fetchFromGitHub, qmake, qttools, qtbase }:
|
|
|
|
mkDerivation rec {
|
|
pname = "calaos_installer";
|
|
version = "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "calaos";
|
|
repo = "calaos_installer";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-e/f58VtGmKukdv4rIrGljXhA9d/xUycM5V6I1FT5qeY=";
|
|
};
|
|
|
|
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 lib; {
|
|
description = "Calaos Installer, a tool to create calaos configuration";
|
|
mainProgram = "calaos_installer";
|
|
homepage = "https://www.calaos.fr/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ tiramiseb ];
|
|
};
|
|
}
|