diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2017-01-07 16:38:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-07 16:38:42 +0100 |
commit | 7e3ed8b44ffff62a85f76036f7500bf5578b9a8a (patch) | |
tree | b8c7e5fe153cc980fad5c76383fc02f91d3752f3 /pkgs | |
parent | 71fc7f97482739ba742b9bc2101c20225cc5cb35 (diff) | |
parent | 24aae1effe0d7d65fb7117fc99e82890fb49d466 (diff) | |
download | nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.tar nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.tar.gz nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.tar.bz2 nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.tar.lz nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.tar.xz nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.tar.zst nixpkgs-7e3ed8b44ffff62a85f76036f7500bf5578b9a8a.zip |
Merge pull request #21735 from peterhoeg/u/qrcode
qrcode: 2014-01-01 -> 2016-08-04
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/graphics/qrcode/default.nix | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/pkgs/tools/graphics/qrcode/default.nix b/pkgs/tools/graphics/qrcode/default.nix index 606e546af29..44444e6148a 100644 --- a/pkgs/tools/graphics/qrcode/default.nix +++ b/pkgs/tools/graphics/qrcode/default.nix @@ -1,24 +1,14 @@ -{ 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 = "1qli0b62yngqj66v6vdqqgcysy3q3fr5vwpf7yf0d9a0dg862x8a"; - }; - buildInputs = [ - ]; -in -stdenv.mkDerivation { - inherit (s) name version; - inherit buildInputs; +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "qrcode-git-${version}"; + version = "20160804"; - src = fetchgit { - inherit (s) rev url sha256; + src = fetchFromGitHub { + owner = "qsantos"; + repo = "qrcode"; + rev = "ad0fdb4aafd0d56b903f110f697abaeb27deee73"; + sha256 = "0v81745nx5gny2g05946k8j553j18a29ikmlyh6c3syq6c15k8cf"; }; NIX_CFLAGS_COMPILE = "-Wno-error=unused-result"; @@ -29,11 +19,10 @@ stdenv.mkDerivation { cp DOCUMENTATION LICENCE "$out/share/doc/qrcode" ''; - meta = { - inherit (s) version; + meta = with stdenv.lib; { description = ''A small QR-code tool''; - license = stdenv.lib.licenses.gpl3Plus; - maintainers = [stdenv.lib.maintainers.raskin]; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ raskin ]; + platforms = with platforms; linux; }; } |