diff options
author | Robin Gloster <mail@glob.in> | 2016-01-23 23:31:05 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-01-30 20:31:01 +0000 |
commit | d89e84f859226db6d18f25c3542bb4430e121158 (patch) | |
tree | c7e31091d54cad45e8e00271c604a27e9b138fa6 /pkgs/tools/misc/gnokii/default.nix | |
parent | ead58a86ba8f7bc1aac95171fb0505c439351281 (diff) | |
download | nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.tar nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.tar.gz nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.tar.bz2 nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.tar.lz nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.tar.xz nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.tar.zst nixpkgs-d89e84f859226db6d18f25c3542bb4430e121158.zip |
gnokii: use mkDerivation
Diffstat (limited to 'pkgs/tools/misc/gnokii/default.nix')
-rw-r--r-- | pkgs/tools/misc/gnokii/default.nix | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/pkgs/tools/misc/gnokii/default.nix b/pkgs/tools/misc/gnokii/default.nix index c0593e5c017..d1551eb4ccd 100644 --- a/pkgs/tools/misc/gnokii/default.nix +++ b/pkgs/tools/misc/gnokii/default.nix @@ -1,31 +1,25 @@ -a @ { intltool, perl, gettext, libusb, pkgconfig, bluez, readline, pcsclite, libical, gtk, glib, libXpm, ... } : -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl, intltool, perl, gettext, libusb, pkgconfig, bluez +, readline, pcsclite, libical, gtk, glib, libXpm }: - s = import ./src-for-default.nix; - buildInputs = with a; [ +stdenv.mkDerivation rec { + name = "gnokii-${version}"; + version = "0.6.31"; + + src = fetchurl { + sha256 = "0sjjhm40662bj6j0jh3sd25b8nww54nirpwamz618rg6pb5hjwm8"; + url = "http://www.gnokii.org/download/gnokii/${name}.tar.gz"; + }; + + buildInputs = [ perl intltool gettext libusb glib gtk pkgconfig bluez readline libXpm pcsclite libical ]; -in - -assert a.stdenv ? glibc; - -rec { - src = a.fetchUrlFromSrcInfo s; - - inherit buildInputs; - configureFlags = []; - - /* doConfigure should be removed if not needed */ - phaseNames = [ "doConfigure" "doMakeInstall"]; - inherit(s) name; meta = { description = "Cellphone tool"; homepage = http://www.gnokii.org; - maintainers = [a.lib.maintainers.raskin]; - platforms = with a.lib.platforms; linux; + maintainers = [ stdenv.lib.maintainers.raskin ]; + platforms = stdenv.lib.platforms.linux; }; } |