summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-08-31 19:16:11 +0200
committerlassulus <lassulus@lassul.us>2021-08-31 19:16:11 +0200
commit8104c7412081d8ae3e372cf160bf3c6109a6a4e7 (patch)
treeac4c74514a8fbdcb682f1f1e22ebdf3376c0e1fd /krebs/5pkgs
parentf1fd0f15cd506cd263e43d94c6bcf933b693d0a2 (diff)
parent6e9910aa65b63d7bda3434c8089f6904adb8e45c (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r--krebs/5pkgs/simple/gnokii/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/gnokii/default.nix b/krebs/5pkgs/simple/gnokii/default.nix
new file mode 100644
index 000000000..995de3468
--- /dev/null
+++ b/krebs/5pkgs/simple/gnokii/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchurl, intltool, perl, gettext, libusb-compat-0_1, pkg-config, bluez
+, readline, pcsclite, libical, gtk2, glib, libXpm
+, fetchpatch
+}:
+
+stdenv.mkDerivation rec {
+ pname = "gnokii";
+ version = "0.6.31";
+
+ src = fetchurl {
+ sha256 = "0sjjhm40662bj6j0jh3sd25b8nww54nirpwamz618rg6pb5hjwm8";
+ url = "https://www.gnokii.org/download/gnokii/${pname}-${version}.tar.gz";
+ };
+ patches = let
+ base = "https://aur.archlinux.org/cgit/aur.git/plain";
+ in [
+ (fetchpatch { url = "${base}/gnokii-gcc7.patch?h=${pname}"; sha256 = "0q1f783mxx3h212y8kqazvcy3vv4rxbvf123wy1zpsyw2z9fwsa5"; })
+ (fetchpatch { url = "${base}/gnokii-gcc5.patch?h=${pname}"; sha256 = "1vfsnhk37qzykx8sfilggwn1vq6iknx2r5z7rd4zrhgid2yqi2qc"; })
+ ];
+ buildInputs = [
+ perl intltool gettext libusb-compat-0_1
+ glib gtk2 pkg-config bluez readline
+ libXpm pcsclite libical
+ ];
+
+ meta = {
+ description = "Cellphone tool";
+ homepage = "http://www.gnokii.org";
+ maintainers = [ lib.maintainers.raskin ];
+ platforms = lib.platforms.linux;
+ };
+}