Unverified Commit e26cca55 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #231922 from maralorn/nom-2.0.0.6

parents a461d366 4414a2d9
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
{
  haskell,
  expect,
  haskellPackages,
  installShellFiles,
  lib
  lib,
}: let
  inherit (haskell.lib.compose) justStaticExecutables overrideCabal;

  overrides = {
    passthru.updateScript = ./update.sh;

    # nom has unit-tests and golden-tests
    # golden-tests call nix and thus can’t be run in a nix build.
    testTarget = "unit-tests";

    buildTools = [installShellFiles];
    postInstall = ''
      ln -s nom "$out/bin/nom-build"
@@ -16,15 +20,11 @@
      chmod a+x $out/bin/nom-build
      installShellCompletion --zsh --name _nom-build completions/completion.zsh
    '';
    mainProgram = "nom";
  };
  nom-pkg = haskellPackages.callPackage ./generated-package.nix { };
  nom-pkg-with-scope = nom-pkg.overrideScope (hfinal: hprev: {
    hermes-json = hfinal.hermes-json_0_2_0_1;
  });
  raw-pkg = haskellPackages.callPackage ./generated-package.nix {};
in
  lib.pipe
  nom-pkg-with-scope
  raw-pkg
  [
    (overrideCabal overrides)
    justStaticExecutables
+9 −8
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
  relude,
  safe,
  stm,
  streamly,
  streamly-core,
  strict,
  strict-types,
  terminal-size,
@@ -38,10 +38,10 @@
}:
mkDerivation {
  pname = "nix-output-monitor";
  version = "2.0.0.5";
  version = "2.0.0.6";
  src = fetchzip {
    url = "https://github.com/maralorn/nix-output-monitor/archive/refs/tags/v2.0.0.5.tar.gz";
    sha256 = "02xrbf2nr64yfny3idkjb1xbd97wl8m5viifrwjf4hi6ivs5bl18";
    url = "https://github.com/maralorn/nix-output-monitor/archive/refs/tags/v2.0.0.6.tar.gz";
    sha256 = "1adxg2bws7fqbmzfna5hr28fh8j10gvf57j6b0xbkhh4hgj4h9xd";
  };
  isLibrary = true;
  isExecutable = true;
@@ -66,7 +66,7 @@ mkDerivation {
    relude
    safe
    stm
    streamly
    streamly-core
    strict
    strict-types
    terminal-size
@@ -96,7 +96,7 @@ mkDerivation {
    relude
    safe
    stm
    streamly
    streamly-core
    strict
    strict-types
    terminal-size
@@ -129,7 +129,7 @@ mkDerivation {
    relude
    safe
    stm
    streamly
    streamly-core
    strict
    strict-types
    terminal-size
@@ -142,5 +142,6 @@ mkDerivation {
  homepage = "https://github.com/maralorn/nix-output-monitor";
  description = "Parses output of nix-build to show additional information";
  license = lib.licenses.agpl3Plus;
  maintainers = with lib.maintainers; [maralorn];
  mainProgram = "nom";
  maintainers = [lib.maintainers.maralorn];
}