conspy: refactor

This commit is contained in:
Felix Buehler 2021-12-21 12:10:50 +01:00
parent 459f9fe2be
commit bfd87658ef
2 changed files with 20 additions and 29 deletions

View file

@ -1,25 +1,21 @@
{lib, stdenv, fetchurl, autoconf, automake, ncurses}:
let
s = # Generated upstream information
rec {
baseName="conspy";
version="1.16";
name="${baseName}-${version}";
hash="02andak806vd04bgjlr0y0d2ddx7cazyf8nvca80vlh8x94gcppf";
url="mirror://sourceforge/project/conspy/conspy-1.16-1/conspy-1.16.tar.gz";
sha256="02andak806vd04bgjlr0y0d2ddx7cazyf8nvca80vlh8x94gcppf";
};
buildInputs = [
autoconf automake ncurses
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
{ lib, stdenv, fetchurl, autoconf, automake, ncurses }:
stdenv.mkDerivation rec {
pname = "conspy";
version = "1.16";
src = fetchurl {
inherit (s) url sha256;
url = "mirror://sourceforge/project/conspy/conspy-${version}-1/conspy-${version}.tar.gz";
sha256 = "02andak806vd04bgjlr0y0d2ddx7cazyf8nvca80vlh8x94gcppf";
curlOpts = " -A application/octet-stream ";
};
buildInputs = [
autoconf
automake
ncurses
];
preConfigure = ''
touch NEWS
echo "EPL 1.0" > COPYING
@ -27,11 +23,11 @@ stdenv.mkDerivation {
automake --add-missing
autoconf
'';
meta = {
inherit (s) version;
meta = with lib; {
description = "Linux text console viewer";
license = lib.licenses.epl10 ;
maintainers = [lib.maintainers.raskin];
platforms = lib.platforms.linux;
license = licenses.epl10;
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
};
}

View file

@ -1,5 +0,0 @@
url https://sourceforge.net/projects/conspy/files/
version_link 'conspy-[-0-9.]+/$'
version_link '[-0-9.]+[.]tar[.][a-z0-9]+/download$'
SF_redirect
version '.*-([-0-9.]+)[.]tar[.].*' '\1'