nixpkgs/pkgs/applications/misc/eos-installer/default.nix

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

54 lines
1.4 KiB
Nix
Raw Normal View History

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
}:
stdenv.mkDerivation rec {
pname = "eos-installer";
2023-04-09 14:26:10 +00:00
version = "5.0.2";
src = fetchFromGitHub {
owner = "endlessm";
repo = "eos-installer";
rev = "Release_${version}";
2023-04-09 14:26:10 +00:00
sha256 = "utTTux8o8TN51bvnGldrtMEatiLA1AiHf/9XJZ7k7KM=";
fetchSubmodules = true;
};
strictDeps = true;
nativeBuildInputs = [
2023-04-09 14:26:10 +00:00
glib gnupg meson ninja pkg-config python3
];
2023-04-09 14:26:10 +00:00
buildInputs = [ gnome-desktop gtk3 systemdMinimal udisks ];
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
'';
2023-04-09 14:26:10 +00:00
mesonFlags = [
"--libexecdir=${placeholder "out"}/bin"
2023-04-09 14:26:10 +00:00
"--cross-file=${writeText "crossfile.ini" ''
[binaries]
gpg = '${gnupg}/bin/gpg'
''}"
];
2023-04-09 14:26:10 +00:00
PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
doCheck = true;
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";
platforms = platforms.linux;
};
}