about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/eos-installer/default.nix
blob: 02d629412a39af40acfdc93a0f06023549f7fda7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib, stdenv, fetchFromGitHub
, autoconf, autoconf-archive, automake, glib, intltool, libtool, pkg-config
, gnome, gnupg, gtk3, udisks
}:

stdenv.mkDerivation rec {
  pname = "eos-installer";
  version = "4.0.3";

  src = fetchFromGitHub {
    owner = "endlessm";
    repo = "eos-installer";
    rev = "Release_${version}";
    sha256 = "1nl6vim5dd83kvskmf13xp9d6zx39fayz4z0wqwf7xf4nwl07gwz";
    fetchSubmodules = true;
  };

  strictDeps = true;
  nativeBuildInputs = [
    autoconf autoconf-archive automake glib intltool libtool pkg-config
  ];
  buildInputs = [ gnome.gnome-desktop gtk3 udisks ];

  preConfigure = ''
    ./autogen.sh
  '';

  configureFlags = [
    "--libexecdir=${placeholder "out"}/bin"
    "--localstatedir=/var"
    "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
  ];

  # These are for runtime, so can't be discovered from PATH, which
  # is constructed from nativeBuildInputs.
  GPG_PATH = "${gnupg}/bin/gpg";
  GPGCONF_PATH = "${gnupg}/bin/gpgconf";

  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 ];
    platforms = platforms.linux;
  };
}