Merge pull request #301145 from Anomalocaridid/ternimal

ternimal: init at 0.1.0-unstable-2017-12-31

authored by Weijia Wang and committed by GitHub b7a5b852 00ad4eba

+44
+44
pkgs/by-name/te/ternimal/package.nix
···
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , rustc 5 + }: 6 + stdenv.mkDerivation { 7 + pname = "ternimal"; 8 + version = "0.1.0-unstable-2017-12-31"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "p-e-w"; 12 + repo = "ternimal"; 13 + rev = "e7953b4f80e514899e0920f0e36bb3141b685122"; 14 + hash = "sha256-uIxuwRvStvlC/YiolOvWZd45Qg3b86jsZQ000zZMo3M="; 15 + }; 16 + 17 + nativeBuildInputs = [ rustc ]; 18 + 19 + buildPhase = '' 20 + runHook preBuild 21 + 22 + rustc -O $src/ternimal.rs 23 + 24 + runHook postBuild 25 + ''; 26 + 27 + installPhase = '' 28 + runHook preInstall 29 + 30 + mkdir -p $out/bin 31 + cp ternimal $out/bin 32 + 33 + runHook postInstall 34 + ''; 35 + 36 + meta = { 37 + description = "Simulate a lifeform in the terminal"; 38 + homepage = "https://github.com/p-e-w/ternimal"; 39 + license = lib.licenses.gpl3Only; 40 + maintainers = with lib.maintainers; [ anomalocaris ]; 41 + platforms = with lib.platforms; linux ++ darwin; 42 + mainProgram = "ternimal"; 43 + }; 44 + }