Merge pull request #98976 from AndersonTorres/eweb-upload

eweb: "pname-version" rewriting
This commit is contained in:
Anderson Torres 2020-09-28 04:00:04 -03:00 committed by GitHub
commit 87039678e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,24 @@
{ stdenv, fetchurl, python3, asciidoc }:
stdenv.mkDerivation rec {
name = "eweb-${meta.version}";
pname = "eweb";
version = "9.10";
src = fetchurl {
url = "mirror://sourceforge/project/eweb/${name}.tar.bz2";
url = "mirror://sourceforge/project/eweb/${pname}-${version}.tar.bz2";
sha256 = "1xy7vm2sj5q6s620fm25klmnwnz9xkrxmx4q2f8h6c85ydisayd5";
};
buildInputs = [ python3 asciidoc ];
installPhase = ''
install -d $out/bin $out/share/doc/${name}
install -d $out/bin $out/share/doc/${pname}-${version}
cp etangle.py $out/bin
cp etangle.w etangle.html $out/share/doc/${name}
cp etangle.w etangle.html $out/share/doc/${pname}-${version}
'';
meta = with stdenv.lib; {
version = "9.10" ;
homepage = "http://eweb.sf.net";
homepage = "http://eweb.sourceforge.net/";
description = "An Asciidoc-based literate programming tool, written in Python";
platforms = platforms.linux;
license = licenses.gpl3Plus;