mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 00:04:14 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, perl, pkg-config, glib, ncurses
|
|
, enablePlugin ? false }:
|
|
|
|
# Enabling the plugin and using it with a recent irssi, segafults on join:
|
|
# http://marc.info/?l=silc-devel&m=125610477802211
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "silc-client" + lib.optionalString enablePlugin "-irssi-plugin";
|
|
version = "1.1.11";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/silc/silc/client/sources/silc-client-${version}.tar.bz2";
|
|
sha256 = "13cp3fmdnj8scjak0d2xal3bfvs2k7ssrwdhp0zl6jar5rwc7prn";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
dontDisableStatic = true;
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
configureFlags = [ "--with-ncurses=${ncurses.dev}" ];
|
|
|
|
preConfigure = lib.optionalString enablePlugin ''
|
|
configureFlags="$configureFlags --with-silc-plugin=$out/lib/irssi"
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ perl glib ncurses ];
|
|
|
|
meta = {
|
|
homepage = "http://silcnet.org/";
|
|
description = "Secure Internet Live Conferencing server";
|
|
mainProgram = "silc";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = [ ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|