diff options
author | Felix Buehler <account@buehler.rocks> | 2021-09-19 18:57:42 +0200 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-09-19 18:57:42 +0200 |
commit | dfc987cd7c983d1c88d9e89a53e236e2a47628cc (patch) | |
tree | a85b26a06e3751e5a0138eaf9bba6c72ae3c3514 /pkgs/tools/misc/txt2man | |
parent | 8ee398d0162287efe48c6ed9efaf6d8379b1b63e (diff) |
txt2man: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/tools/misc/txt2man')
-rw-r--r-- | pkgs/tools/misc/txt2man/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/tools/misc/txt2man/default.nix b/pkgs/tools/misc/txt2man/default.nix index 27ff219a6e136..b522665e34fae 100644 --- a/pkgs/tools/misc/txt2man/default.nix +++ b/pkgs/tools/misc/txt2man/default.nix @@ -1,12 +1,14 @@ -{ lib, stdenv, fetchurl, coreutils, gawk }: +{ lib, stdenv, fetchFromGitHub, coreutils, gawk }: stdenv.mkDerivation rec { pname = "txt2man"; version = "1.7.1"; - src = fetchurl { - url = "https://github.com/mvertes/txt2man/archive/${pname}-${version}.tar.gz"; - sha256 = "0ka3krmblsprv0v6h6wnm8lv08w30z0ynfnbwns6alks5gx1p6sd"; + src = fetchFromGitHub { + owner = "mvertes"; + repo = "txt2man"; + rev = "${pname}-${version}"; + hash = "sha256-Aqi5PNNaaM/tr9A/7vKeafYKYIs/kHbwHzE7+R/9r9s="; }; preConfigure = '' |