lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 16.09-beta 39 lines 1.1 kB view raw
1{stdenv, fetchgit, SDL_gfx, SDL, libjpeg, libpng, pkgconfig}: 2let 3 s = 4 rec { 5 date = "2016-08-16"; 6 version = "git-${date}"; 7 baseName = "quirc"; 8 name = "${baseName}-${version}"; 9 url = "https://github.com/dlbeer/quirc"; 10 rev = "5b262480091d5f84a67a4a56c728fc8b39844339"; 11 sha256 = "1w5qvjafn14s6jjs7kiwsqirlsqbgv0p152hrsq463pm34hp0lzy"; 12 }; 13 buildInputs = [ 14 SDL SDL_gfx libjpeg pkgconfig libpng 15 ]; 16in 17stdenv.mkDerivation { 18 inherit (s) name version; 19 inherit buildInputs; 20 src = fetchgit { 21 inherit (s) url sha256 rev; 22 }; 23 NIX_CFLAGS_COMPILE="-I${SDL.dev}/include/SDL -I${SDL_gfx}/include/SDL"; 24 configurePhase = '' 25 sed -e 's/-[og] root//g' -i Makefile 26 ''; 27 preInstall = '' 28 mkdir -p "$out"/{bin,lib,include} 29 find . -maxdepth 1 -type f -perm -0100 -exec cp '{}' "$out"/bin ';' 30 ''; 31 makeFlags = "PREFIX=$(out)"; 32 meta = { 33 inherit (s) version; 34 description = ''A small QR code decoding library''; 35 license = stdenv.lib.licenses.isc; 36 maintainers = [stdenv.lib.maintainers.raskin]; 37 platforms = stdenv.lib.platforms.linux; 38 }; 39}