Unverified Commit 5bf52f09 authored by toonn's avatar toonn Committed by GitHub
Browse files

nb: 7.25.0 -> 7.25.2 (#495482)

parents 5fa5e1fd b509d6df
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
{
  stdenv,
  stdenvNoCC,
  lib,
  fetchFromGitHub,
  installShellFiles,
  testers,
  nix-update-script,
  nb,
  bashInteractive,
}:

stdenv.mkDerivation (finalAttrs: {
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "nb";
  version = "7.25.0";
  version = "7.25.2";

  src = fetchFromGitHub {
    owner = "xwmx";
    repo = "nb";
    rev = finalAttrs.version;
    hash = "sha256-+QRKv+zKOz8qDD1Ecpavl0ybf4nIcy0flNLHhyR+fxA=";
    tag = finalAttrs.version;
    hash = "sha256-G/4BDOsrBqN92noEzDCG9lkZTblsz/HbYl0D+oyLEXc=";
  };

  nativeBuildInputs = [ installShellFiles ];
@@ -27,8 +26,8 @@ stdenv.mkDerivation (finalAttrs: {
  dontBuild = true;

  installPhase = ''
    mkdir -p $out/bin/
    mv nb $out/bin/
    runHook preInstall
    install -Dm755 -t $out/bin nb
    runHook postInstall
  '';

@@ -38,7 +37,7 @@ stdenv.mkDerivation (finalAttrs: {

  passthru = {
    tests.version = testers.testVersion {
      package = nb;
      package = finalAttrs.finalPackage;
      # Setting EDITOR to avoid: "Command line text editor not found"
      command = "EDITOR=nano nb --version";
    };
@@ -81,7 +80,10 @@ stdenv.mkDerivation (finalAttrs: {
    '';
    homepage = "https://xwmx.github.io/nb/";
    license = lib.licenses.agpl3Plus;
    maintainers = [ lib.maintainers.toonn ];
    maintainers = with lib.maintainers; [
      prince213
      toonn
    ];
    platforms = lib.platforms.all;
    mainProgram = "nb";
  };