summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-07-20 18:44:32 +0200
committerGitHub <noreply@github.com>2021-07-20 18:44:32 +0200
commit505e2a989c2fcdd3799eead2878483a89978ed67 (patch)
tree0f9c9de3786d3b455406ed4b1a9457fedf8b12ed /pkgs
parente9bea987c44cef330f2c8a7314042292d000d969 (diff)
parentab7a73a286f50d6c5868c3105d6bcfe0a00cff86 (diff)
downloadnixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.tar
nixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.tar.gz
nixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.tar.bz2
nixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.tar.lz
nixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.tar.xz
nixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.tar.zst
nixpkgs-505e2a989c2fcdd3799eead2878483a89978ed67.zip
Merge pull request #130810 from SuperSandro2000/ponysay
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/misc/ponysay/default.nix25
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/tools/misc/ponysay/default.nix b/pkgs/tools/misc/ponysay/default.nix
index 08f0cf0ed62..b27aa32481c 100644
--- a/pkgs/tools/misc/ponysay/default.nix
+++ b/pkgs/tools/misc/ponysay/default.nix
@@ -1,15 +1,18 @@
-{ lib, stdenv, fetchurl, python3, texinfo, makeWrapper }:
+{ lib, stdenv, fetchFromGitHub, python3, texinfo, makeWrapper }:
 
-stdenv.mkDerivation {
-  name = "ponysay-3.0.3";
+stdenv.mkDerivation rec {
+  name = "ponysay";
+  version = "3.0.3";
 
-  src = fetchurl {
-    url = "https://github.com/erkin/ponysay/archive/3.0.3.tar.gz";
-    sha256 = "12mjabf5cpp5dgg63s19rlyq3dhhpzzy2sa439yncqzsk7rdg0n3";
+  src = fetchFromGitHub {
+    owner = "erkin";
+    repo = "ponysay";
+    rev = version;
+    sha256 = "sha256-R2B0TU3ZSEncGsijKgvhaHIbcZa5Dx/jVPxrILBaoVw=";
   };
 
   nativeBuildInputs = [ makeWrapper ];
-  buildInputs = [ python3 texinfo  ];
+  buildInputs = [ python3 texinfo ];
 
   inherit python3;
 
@@ -23,11 +26,11 @@ stdenv.mkDerivation {
         --with-bash
   '';
 
-  meta = {
+  meta = with lib; {
     description = "Cowsay reimplemention for ponies";
     homepage = "https://github.com/erkin/ponysay";
-    license = lib.licenses.gpl3;
-    maintainers = with lib.maintainers; [ bodil ];
-    platforms = with lib.platforms; unix;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ bodil ];
+    platforms = platforms.unix;
   };
 }