mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 01:21:11 +00:00
teapot: update src
Reference: https://repology.org/project/teapot/information
Reference: https://github.com/NixOS/nixpkgs/issues/471645
(cherry picked from commit 173e1b6a11)
This commit is contained in:
committed by
github-actions[bot]
parent
516a01c227
commit
05b607302f
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchzip,
|
||||
cmake,
|
||||
libtirpc,
|
||||
ncurses,
|
||||
@@ -11,17 +11,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "teapot";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "museoa";
|
||||
repo = "teapot";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-38XFjRzOGasr030f+mRYT+ptlabpnVJfa+1s7ZAjS+k=";
|
||||
src = fetchzip {
|
||||
url = "https://www.syntax-k.de/projekte/teapot/teapot-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-wzAwZwOMeTsuR5LhfjspGdejT6X1V8YJ8B7v9pcbxaY=";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
cd src
|
||||
'';
|
||||
|
||||
patches = [
|
||||
# include a local file in order to make cc happy
|
||||
./001-fix-warning.patch
|
||||
@@ -42,10 +36,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ];
|
||||
NIX_LDFLAGS = [ "-ltirpc" ];
|
||||
|
||||
cmakeConfigureFlags = [
|
||||
"-DENABLE_HELP=OFF"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
|
||||
@@ -78,8 +68,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
mainProgram = "teapot";
|
||||
homepage = "https://github.com/museoa/teapot";
|
||||
changelog = "https://github.com/museoa/teapot/releases/tag/${finalAttrs.version}";
|
||||
homepage = "https://www.syntax-k.de/projekte/teapot/";
|
||||
changelog = "https://www.syntax-k.de/projekte/teapot/";
|
||||
};
|
||||
})
|
||||
# TODO: patch/fix FLTK building
|
||||
|
||||
Reference in New Issue
Block a user