diff --git a/pkgs/development/libraries/libmusclecard/default.nix b/pkgs/development/libraries/libmusclecard/default.nix new file mode 100644 index 00000000000..36e946d2e6a --- /dev/null +++ b/pkgs/development/libraries/libmusclecard/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, pkgconfig, pcsclite}: +stdenv.mkDerivation { + name = "libmusclecard-1.3.6"; + + src = fetchurl { + url = https://alioth.debian.org/frs/download.php/3024/libmusclecard-1.3.6.tar.bz2; + sha256 = "1sswy7vcy0w9p6818al7prv9d3whj7w3w98k55zw9nhspbj6lppb"; + }; + + # The OS should care on preparing the services into this location + configureFlags = [ "--enable-muscledropdir=/var/lib/pcsc/services" ]; + + buildInputs = [ pkgconfig pcsclite ]; + + meta = { + description = "Smart card framework"; + homepage = http://muscleplugins.alioth.debian.org/; + license = "BSD"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/tools/security/muscleframework/default.nix b/pkgs/tools/security/muscleframework/default.nix new file mode 100644 index 00000000000..7b1827aef74 --- /dev/null +++ b/pkgs/tools/security/muscleframework/default.nix @@ -0,0 +1,24 @@ +{stdenv, fetchurl, libmusclecard, pkgconfig, pcsclite}: +stdenv.mkDerivation { + name = "muscleframework-mcardplugin-1.1.7"; + + src = fetchurl { + url = https://alioth.debian.org/frs/download.php/3056/muscleframework-1.1.7.tar.gz; + sha256 = "081sq25fa3k1gz0asq2995krx7pzxbfq5vx1ahsd5sbmwnplv94v"; + }; + + preConfigure = '' + cd MCardPlugin + configureFlags="$configureFlags --enable-muscledropdir=$out/pcsc/services" + ''; + + buildInputs = [ libmusclecard pkgconfig pcsclite]; + + meta = { + description = "Smart card framework"; + homepage = http://muscleplugins.alioth.debian.org/; + license = "BSD"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/tools/security/muscletool/default.nix b/pkgs/tools/security/muscletool/default.nix new file mode 100644 index 00000000000..fc3c67efb51 --- /dev/null +++ b/pkgs/tools/security/muscletool/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, libmusclecard, pcsclite, pkgconfig }: +stdenv.mkDerivation { + name = "muscletool-2.1.1"; + + src = fetchurl { + url = https://alioth.debian.org/frs/download.php/3180/muscletool-2.1.1.tar.bz2; + sha256 = "11d812ijvhsaxwkr05hzxfl0n6ji9hwl5j1kv56f9gv8kyy3b9kw"; + }; + + buildInputs = [ libmusclecard pcsclite pkgconfig ]; + + meta = { + description = "Smart card applications for use with muscle plugins"; + homepage = http://muscleapps.alioth.debian.org/; + license = "BSD"; + maintainers = with stdenv.lib.maintainers; [viric]; + platforms = with stdenv.lib.platforms; linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index af095d4c586..618f1c2dc3b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1065,6 +1065,14 @@ let }; }); + muscleframework = import ../tools/security/muscleframework { + inherit fetchurl stdenv libmusclecard pkgconfig pcsclite; + }; + + muscletool = import ../tools/security/muscletool { + inherit fetchurl stdenv pkgconfig libmusclecard pcsclite; + }; + mysql2pgsql = import ../tools/misc/mysql2pgsql { inherit fetchurl stdenv perl shebangfix; }; @@ -4019,6 +4027,10 @@ let inherit fetchurl stdenv; }; + libmusclecard = import ../development/libraries/libmusclecard { + inherit fetchurl stdenv pkgconfig pcsclite; + }; + libnova = import ../development/libraries/libnova { inherit fetchurl stdenv; };