Files
nixpkgs/pkgs/by-name/sc/sc-im/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
makeWrapper,
pkg-config,
which,
bison,
gnuplot,
libxls,
libxlsxwriter,
libxml2,
libzip,
ncurses,
xlsSupport ? false,
}:
stdenv.mkDerivation rec {
pname = "sc-im";
version = "0.8.5";
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
sha256 = "sha256-V2XwzZwn+plMxQuTCYxbeTaqdud69z77oMDDDi+7Jw0=";
};
sourceRoot = "${src.name}/src";
nativeBuildInputs = [
makeWrapper
pkg-config
which
bison
];
buildInputs = [
gnuplot
libxml2
libzip
ncurses
]
++ lib.optionals xlsSupport [
libxls
libxlsxwriter
];
makeFlags = [ "prefix=${placeholder "out"}" ];
# https://github.com/andmarti1424/sc-im/issues/884
hardeningDisable = [ "fortify" ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration";
postInstall = ''
wrapProgram "$out/bin/sc-im" --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
'';
meta = with lib; {
changelog = "https://github.com/andmarti1424/sc-im/blob/${src.rev}/CHANGES";
homepage = "https://github.com/andmarti1424/sc-im";
description = "Ncurses spreadsheet program for terminal";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ dotlambda ];
platforms = platforms.unix;
};
}