aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/pkgs/modem-manager-gui.nix35
-rw-r--r--home.nix2
-rw-r--r--host/asterix.nix14
-rw-r--r--host/obelix.nix7
4 files changed, 57 insertions, 1 deletions
diff --git a/gui/pkgs/modem-manager-gui.nix b/gui/pkgs/modem-manager-gui.nix
new file mode 100644
index 0000000..50d64a8
--- /dev/null
+++ b/gui/pkgs/modem-manager-gui.nix
@@ -0,0 +1,35 @@
+{ stdenv, pkgs, ... }:
+
+stdenv.mkDerivation rec {
+ name = "modem-manager-gui";
+
+ src = pkgs.fetchhg {
+ url = "https://linuxonly@bitbucket.org/linuxonly/modem-manager-gui";
+ rev = "5c6456f";
+ };
+
+ # required for locale generation
+ LANG = "en_US.UTF-8";
+ LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
+ # required to get Po4a to work
+ PERL5LIB="${pkgs.perlPackages.Po4a}/lib/perl5";
+
+ buildInputs = with pkgs; [
+ pkgconfig
+ gtk3
+ glib
+ gdbm
+ perlPackages.Po4a
+ itstool
+ libappindicator-gtk3
+ meson
+ gettext
+ ninja
+ ];
+
+ meta = {
+ description = "modem-manager-gui";
+ homepage = https://linuxonly.ru/page/modem-manager-gui;
+ license = stdenv.lib.licenses.gpl3;
+ };
+}
diff --git a/home.nix b/home.nix
index 50d8787..01c1880 100644
--- a/home.nix
+++ b/home.nix
@@ -7,7 +7,7 @@
};
imports = [
- ./gui/default.nix
+ ./host/current.nix
];
home = {
diff --git a/host/asterix.nix b/host/asterix.nix
new file mode 100644
index 0000000..7a74307
--- /dev/null
+++ b/host/asterix.nix
@@ -0,0 +1,14 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ../gui/default.nix
+ ];
+
+ home.packages = let
+ # only asterix has a 3g modem
+ modem-manager-gui = import ../gui/pkgs/modem-manager-gui.nix pkgs;
+ in [
+ modem-manager-gui
+ ];
+}
diff --git a/host/obelix.nix b/host/obelix.nix
new file mode 100644
index 0000000..bfd3522
--- /dev/null
+++ b/host/obelix.nix
@@ -0,0 +1,7 @@
+{ pkgs, ... }:
+
+{
+ imports = [
+ ../gui/default.nix
+ ];
+}