Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
894 B
Nix
46 lines
894 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustc,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "ternimal";
|
|
version = "0.1.0-unstable-2017-12-31";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "p-e-w";
|
|
repo = "ternimal";
|
|
rev = "e7953b4f80e514899e0920f0e36bb3141b685122";
|
|
hash = "sha256-uIxuwRvStvlC/YiolOvWZd45Qg3b86jsZQ000zZMo3M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ rustc ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
rustc -O $src/ternimal.rs
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp ternimal $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simulate a lifeform in the terminal";
|
|
homepage = "https://github.com/p-e-w/ternimal";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ anomalocaris ];
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
mainProgram = "ternimal";
|
|
};
|
|
}
|