lol
1# The tarball has different plugins in it, and as I don't need all of them,
2# I only build one of those in this derivation
3# This is an arbitrary decision, and this simplicity fit my needs.
4# Anyone can extend the extension to build all the plugins, or to make
5# different derivations for each plugin.
6
7{stdenv, fetchurl, libmusclecard, pkgconfig, pcsclite}:
8stdenv.mkDerivation {
9 name = "muscleframework-mcardplugin-1.1.7";
10
11 src = fetchurl {
12 url = https://alioth.debian.org/frs/download.php/3056/muscleframework-1.1.7.tar.gz;
13 sha256 = "081sq25fa3k1gz0asq2995krx7pzxbfq5vx1ahsd5sbmwnplv94v";
14 };
15
16 preConfigure = ''
17 cd MCardPlugin
18 configureFlags="$configureFlags --enable-muscledropdir=$out/pcsc/services"
19 '';
20
21 buildInputs = [ libmusclecard pkgconfig pcsclite];
22
23 meta = with stdenv.lib; {
24 description = "MUSCLE smart card framework - mcard plugin";
25 homepage = http://muscleplugins.alioth.debian.org/;
26 license = licenses.bsd3;
27 maintainers = with maintainers; [viric];
28 # XXX: don't build before libmusclecard is fixed
29 # platforms = with stdenv.lib.platforms; linux;
30 };
31}