Commit f747a635 authored by pacien's avatar pacien
Browse files

ldgallery: drop package

This removes 'ldgallery' from nixpkgs.
It remains available through the Nix Flake provided by ldgallery.

The package of its "compiler" part was already marked as broken due to
dependencies having gone out of sync with the rest of the Haskell
packages.

The package of its "viewer" part also got out of sync due to changes
in JS dependency manager.
parent a9b47d85
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3061,7 +3061,6 @@ broken-packages:
  - l-bfgs-b
  - LC3
  - lcs
  - ldgallery-compiler
  - ldif
  - ld-intervals
  - leaf
+0 −2
Original line number Diff line number Diff line
@@ -327,8 +327,6 @@ package-maintainers:
    - tasty-expected-failure
    - lhs2tex
    - rec-def
  pacien:
    - ldgallery-compiler
  peti:
    - cabal2spec
    - funcmp
+0 −2
Original line number Diff line number Diff line
@@ -9,8 +9,6 @@ self: super: {

  dconf2nix = self.callPackage ../tools/haskell/dconf2nix/dconf2nix.nix { };

  ldgallery-compiler = self.callPackage ../../tools/graphics/ldgallery/compiler { };

  # Used by maintainers/scripts/regenerate-hackage-packages.sh, and generated
  # from the latest master instead of the current version on Hackage.
  cabal2nix-unstable = self.callPackage ./cabal2nix-unstable.nix { };
+0 −42
Original line number Diff line number Diff line
# generated with cabal2nix by ./generate.sh
{ mkDerivation, aeson, base, cmdargs, containers, data-ordlist
, directory, fetchgit, filepath, Glob, hpack, lib, parallel-io
, process, safe, text, time, yaml
}:
mkDerivation {
  pname = "ldgallery-compiler";
  version = "2.1";
  src = fetchgit {
    url = "https://github.com/pacien/ldgallery.git";
    sha256 = "184zysh5qwkbki8mn0br87h65yi5j39qwnmhz05z3ir9wfiniq4b";
    rev = "11bbbae2850b9c45da697a8ed9626495a50a38c0";
    fetchSubmodules = true;
  };
  postUnpack = "sourceRoot+=/compiler; echo source root reset to $sourceRoot";
  isLibrary = true;
  isExecutable = true;
  enableSeparateDataOutput = true;
  libraryHaskellDepends = [
    aeson base cmdargs containers data-ordlist directory filepath Glob
    parallel-io process safe text time yaml
  ];
  libraryToolDepends = [ hpack ];
  executableHaskellDepends = [
    aeson base cmdargs containers data-ordlist directory filepath Glob
    parallel-io process safe text time yaml
  ];
  testHaskellDepends = [
    aeson base cmdargs containers data-ordlist directory filepath Glob
    parallel-io process safe text time yaml
  ];
  prePatch = "hpack";
  homepage = "https://ldgallery.pacien.org";
  description = "A static generator which turns a collection of tagged pictures into a searchable web gallery";
  license = lib.licenses.agpl3Only;
  mainProgram = "ldgallery";
  maintainers = [ lib.maintainers.pacien ];

  # Does not compile with ghc-9.2
  hydraPlatforms = lib.platforms.none;
  broken = true;
}
+0 −19
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p cabal2nix

set -euo pipefail

if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
  echo "Regenerates the nix file for the ldgallery-compiler package."
  echo "Usage: $0 <git release tag>"
  exit 1
fi

echo "# generated with cabal2nix by ./generate.sh" > default.nix

cabal2nix \
  --maintainer pacien \
  --subpath compiler \
  --revision $1 \
  "https://github.com/pacien/ldgallery.git" \
  >> default.nix
Loading