diff options
author | Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> | 2024-04-02 23:30:10 -0400 |
---|---|---|
committer | Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> | 2024-04-03 21:51:08 -0400 |
commit | 6ef0689a2d2f76a78f1081b159ffda079c3daa64 (patch) | |
tree | 5e3916743cefd7bd760f0b1dc5ad113de566992c /pkgs/by-name/te | |
parent | 3d784fc78a4582e48d77a105242b049fe9065b75 (diff) |
ternimal: init at 0.1.0-unstable-2017-12-31
Diffstat (limited to 'pkgs/by-name/te')
-rw-r--r-- | pkgs/by-name/te/ternimal/package.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/te/ternimal/package.nix b/pkgs/by-name/te/ternimal/package.nix new file mode 100644 index 0000000000000..31f796f1ae600 --- /dev/null +++ b/pkgs/by-name/te/ternimal/package.nix @@ -0,0 +1,44 @@ +{ 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"; + }; +} |