otfcc: init at 0.8.6

+42
+40
pkgs/tools/misc/otfcc/default.nix
··· 1 + { stdenv, fetchurl, premake5 }: 2 + 3 + let version = "0.8.6"; in 4 + 5 + let 6 + arch = 7 + { 8 + "i686-linux" = "x86"; 9 + "x86_64-linux" = "x64"; 10 + }.${stdenv.system} or (throw "platform ${stdenv.system} is not supported"); 11 + in 12 + 13 + stdenv.mkDerivation { 14 + name = "otfcc-${version}"; 15 + src = fetchurl { 16 + url = "https://github.com/caryll/otfcc/archive/v${version}.tar.gz"; 17 + sha256 = "0kap52bzrn21fmph8j2pc71f80f38ak1p2fcczzmrh0hb1r9c8dd"; 18 + }; 19 + nativeBuildInputs = [ premake5 ]; 20 + configurePhase = '' 21 + runHook preConfigure 22 + premake5 gmake 23 + runHook postConfigure 24 + ''; 25 + buildPhase = '' 26 + runHook preBuild 27 + cd build/gmake 28 + make config=release_${arch} 29 + cd ../.. 30 + runHook postBuild 31 + ''; 32 + installPhase = '' 33 + runHook preInstall 34 + install -d "$out/lib" 35 + install "bin/release-${arch}/"lib* "$out/lib" 36 + install -d "$out/bin" 37 + install "bin/release-${arch}/"otfcc* "$out/bin" 38 + runHook postInstall 39 + ''; 40 + }
+2
pkgs/top-level/all-packages.nix
··· 3584 3584 3585 3585 ostree = callPackage ../tools/misc/ostree { }; 3586 3586 3587 + otfcc = callPackage ../tools/misc/otfcc {}; 3588 + 3587 3589 otpw = callPackage ../os-specific/linux/otpw { }; 3588 3590 3589 3591 owncloud = owncloud70;