2023-04-09 17:26:10 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, writeText
|
|
|
|
, glib, meson, ninja, pkg-config, python3
|
|
|
|
, coreutils, gnome-desktop, gnupg, gtk3, systemdMinimal, udisks
|
2021-12-03 18:17:40 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eos-installer";
|
2023-04-09 17:26:10 +03:00
|
|
|
version = "5.0.2";
|
2021-12-03 18:17:40 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "endlessm";
|
|
|
|
repo = "eos-installer";
|
|
|
|
rev = "Release_${version}";
|
2023-04-09 17:26:10 +03:00
|
|
|
sha256 = "utTTux8o8TN51bvnGldrtMEatiLA1AiHf/9XJZ7k7KM=";
|
2021-12-03 18:17:40 +03:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
2023-04-09 17:26:10 +03:00
|
|
|
glib gnupg meson ninja pkg-config python3
|
2021-12-03 18:17:40 +03:00
|
|
|
];
|
2023-04-09 17:26:10 +03:00
|
|
|
buildInputs = [ gnome-desktop gtk3 systemdMinimal udisks ];
|
2021-12-03 18:17:40 +03:00
|
|
|
|
|
|
|
preConfigure = ''
|
2023-04-09 17:26:10 +03:00
|
|
|
patchShebangs tests
|
|
|
|
substituteInPlace tests/test-scribe.c \
|
|
|
|
--replace /bin/true ${coreutils}/bin/true \
|
|
|
|
--replace /bin/false ${coreutils}/bin/false
|
2021-12-03 18:17:40 +03:00
|
|
|
'';
|
|
|
|
|
2023-04-09 17:26:10 +03:00
|
|
|
mesonFlags = [
|
2021-12-03 18:17:40 +03:00
|
|
|
"--libexecdir=${placeholder "out"}/bin"
|
2023-04-09 17:26:10 +03:00
|
|
|
"--cross-file=${writeText "crossfile.ini" ''
|
|
|
|
[binaries]
|
|
|
|
gpg = '${gnupg}/bin/gpg'
|
|
|
|
''}"
|
2021-12-03 18:17:40 +03:00
|
|
|
];
|
|
|
|
|
2023-04-09 17:26:10 +03:00
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
|
|
|
|
|
|
|
doCheck = true;
|
2021-12-03 18:17:40 +03:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/endlessm/eos-installer";
|
|
|
|
description = "Installer UI which writes images to disk";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ qyliss ];
|
2023-06-26 11:07:55 +03:00
|
|
|
mainProgram = "gnome-image-installer";
|
2021-12-03 18:17:40 +03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|