about summary refs log tree commit diff
path: root/pkgs/tools/graphics/qrcode/default.nix
blob: a1aefbff33c675844bdc3af19e24e7a4ae4c4c29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, fetchgit }:
let
  s =
  rec {
    baseName = "qrcode";
    date = "2014-01-01";
    version = "git-${date}";
    name = "${baseName}-${version}";
    url = "https://github.com/qsantos/qrcode";
    rev = "2843cbada3b768f60ee1ae13c65160083558cc03";
    sha256 = "0x321xhzxk6ldvpr2090w14khj9n2gfay9db5vvvli16affpcrvb";
  };
  buildInputs = [
  ];
in
stdenv.mkDerivation {
  inherit (s) name version;
  inherit buildInputs;

  src = fetchgit {
    inherit (s) rev url sha256;
  };

  hardening_fortify = false;

  installPhase = ''
    mkdir -p "$out"/{bin,share/doc/qrcode}
    cp qrcode "$out/bin"
    cp DOCUMENTATION LICENCE "$out/share/doc/qrcode"
  '';

  meta = {
    inherit (s) version;
    description = ''A small QR-code tool'';
    license = stdenv.lib.licenses.gpl3Plus;
    maintainers = [stdenv.lib.maintainers.raskin];
    platforms = stdenv.lib.platforms.linux;
  };
}