Unverified Commit 4a75ebc3 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #270376 from wahjava/update-fnc

fnc: 0.15 -> 0.16
parents d56f942e 51007d53
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
{ lib, fetchurl, fetchpatch, stdenv, zlib, ncurses, libiconv }:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "fnc";
  version = "0.15";
  version = "0.16";

  src = fetchurl {
    url = "https://fnc.bsdbox.org/tarball/${version}/fnc-${version}.tar.gz";
    sha256 = "sha256-8up844ekIOMcPlfB2DJzR/GgJY9s/sBeYpG+YtdauvU=";
    url = "https://fnc.bsdbox.org/tarball/${finalAttrs.version}/fnc-${finalAttrs.version}.tar.gz";
    hash = "sha256-6I6wtSMHaKdnlUK4pYiaybJeODGu2P+smYW8lQDIWGM=";
  };

  buildInputs = [ libiconv ncurses zlib ];
@@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [
    # Needed with GCC 12
    "-Wno-error=maybe-uninitialized"
  ] ++ lib.optionals stdenv.isDarwin [
    # error: 'strtonum' is only available on macOS 11.0 or newer
    "-Wno-error=unguarded-availability-new"
  ]);

  preInstall = ''
@@ -35,4 +38,4 @@ stdenv.mkDerivation rec {
    maintainers = with maintainers; [ abbe ];
    mainProgram = "fnc";
  };
}
})
+1 −1
Original line number Diff line number Diff line
@@ -31612,7 +31612,7 @@ with pkgs;
  fmsynth = callPackage ../applications/audio/fmsynth { };
  fnc = callPackage ../applications/version-management/fnc { };
  fnc = darwin.apple_sdk_11_0.callPackage ../applications/version-management/fnc { };
  focus = callPackage ../tools/X11/focus { };