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