dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / by-name / eo / eos-installer / package.nix
blob9bdfbccf6a1dcf484bdeb9b4479c807ecacb90ce
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   writeText,
6   glib,
7   meson,
8   ninja,
9   pkg-config,
10   python3,
11   coreutils,
12   gnome-desktop,
13   gnupg,
14   gtk3,
15   systemdMinimal,
16   udisks,
19 stdenv.mkDerivation rec {
20   pname = "eos-installer";
21   version = "5.1.0";
23   src = fetchFromGitHub {
24     owner = "endlessm";
25     repo = "eos-installer";
26     rev = "Release_${version}";
27     sha256 = "BqvZglzFJabGXkI8hnLiw1r+CvM7kSKQPj8IKYBB6S4=";
28     fetchSubmodules = true;
29   };
31   strictDeps = true;
32   nativeBuildInputs = [
33     glib
34     gnupg
35     meson
36     ninja
37     pkg-config
38     python3
39   ];
40   buildInputs = [
41     gnome-desktop
42     gtk3
43     systemdMinimal
44     udisks
45   ];
47   preConfigure = ''
48     patchShebangs tests
49     substituteInPlace tests/test-scribe.c \
50         --replace /bin/true ${coreutils}/bin/true \
51         --replace /bin/false ${coreutils}/bin/false
52   '';
54   mesonFlags = [
55     "--libexecdir=${placeholder "out"}/bin"
56     "--cross-file=${writeText "crossfile.ini" ''
57       [binaries]
58       gpg = '${gnupg}/bin/gpg'
59     ''}"
60   ];
62   PKG_CONFIG_SYSTEMD_SYSTEMDSYSTEMUNITDIR = "${placeholder "out"}/lib/systemd/system";
64   doCheck = true;
66   enableParallelBuilding = true;
68   meta = with lib; {
69     homepage = "https://github.com/endlessm/eos-installer";
70     description = "Installer UI which writes images to disk";
71     license = licenses.gpl2Plus;
72     maintainers = with maintainers; [ qyliss ];
73     mainProgram = "gnome-image-installer";
74     platforms = platforms.linux;
75   };