Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pkgs/by-name/sc/schilytools/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchurl,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "schilytools";
version = "2024-03-21";

src = fetchurl {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use fetchFromGitea?

url = "https://codeberg.org/schilytools/schilytools/releases/download/${finalAttrs.version}/schily-${finalAttrs.version}.tar.bz2";
hash = "sha256-dtsCLkUMF5GgDml4C1XRii4/w5tf+HCZZDP4cxIDICQ=";
};

postPatch = ''
substituteInPlace RULES/rules.prg \
--replace-fail "/bin/" ""
'';

dontConfigure = true;

makeFlags = [
# TODO: Try to unset DESTDIR, according to #65718
"DESTDIR=${placeholder "out"}"
"INS_BASE=/"
];

meta = {
description = "Collection of tools written or formerly managed by Jörg Schilling";
homepage = "https://codeberg.org/schilytools/schilytools";
license = with lib.licenses; [
cddl
lgpl21Only
gpl2Only
];
maintainers = with lib.maintainers; [ wegank ];
platforms = lib.platforms.all;
};
})