2023-04-09 14:26:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, writeText
|
|
|
|
, glib, meson, ninja, pkg-config, python3
|
|
|
|
, coreutils, gnome-desktop, gnupg, gtk3, systemdMinimal, udisks
|
2021-12-03 15:17:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "eos-installer";
|
2023-04-09 14:26:10 +00:00
|
|
|
version = "5.0.2";
|
2021-12-03 15:17:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "endlessm";
|
|
|
|
repo = "eos-installer";
|
|
|
|
rev = "Release_${version}";
|
2023-04-09 14:26:10 +00:00
|
|
|
sha256 = "utTTux8o8TN51bvnGldrtMEatiLA1AiHf/9XJZ7k7KM=";
|
2021-12-03 15:17:40 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
2023-04-09 14:26:10 +00:00
|
|
|
glib gnupg meson ninja pkg-config python3
|
2021-12-03 15:17:40 +00:00
|
|
|
];
|
2023-04-09 14:26:10 +00:00
|
|
|
buildInputs = [ gnome-desktop gtk3 systemdMinimal udisks ];
|
2021-12-03 15:17:40 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2023-04-09 14:26:10 +00:00
|
|
|
patchShebangs tests
|
|
|
|
substituteInPlace tests/test-scribe.c \
|
|
|
|
--replace /bin/true ${coreutils}/bin/true \
|
|
|
|
--replace /bin/false ${coreutils}/bin/false
|
2021-12-03 15:17:40 +00:00
|
|
|
'';
|
|
|
|
|
2023-04-09 14:26:10 +00:00
|
|
|
mesonFlags = [
|
2021-12-03 15:17:40 +00:00
|
|
|
"--libexecdir=${placeholder "out"}/bin"
|
2023-04-09 14:26:10 +00:00
|
|
|
"--cross-file=${writeText "crossfile.ini" ''
|
|
|
|
[binaries]
|
|
|
|
gpg = '${gnupg}/bin/gpg'
|
|
|
|
''}"
|
2021-12-03 15:17:40 +00:00
|
|
|
];
|
|
|
|
|
2023-04-09 14:26:10 +00:00
|
|
|
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
|
|
|
|
|
|
|
|
doCheck = true;
|
2021-12-03 15:17:40 +00: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 08:07:55 +00:00
|
|
|
mainProgram = "gnome-image-installer";
|
2021-12-03 15:17:40 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|