kind-lang: init at 0.1.0.0-unstable-2024-12-09

Co-authored-by: maralorn <mail@maralorn.de>
Co-authored-by: Lukas Epple <sternenseemann@systemli.org>
Co-authored-by: Lin Jian <me@linj.tech>
Co-authored-by: Emily <nixpkgs@emily.moe>
Co-authored-by: Bryan Richter <b@chreekat.net>
Co-authored-by: Niklas Korz <niklas@niklaskorz.de>
Co-authored-by: Ilya K. <me@0upti.me>
Co-authored-by: Alexandre Esteves <alexandre.fmp.esteves@gmail.com>
Co-authored-by: Arne Keller <arne.keller@posteo.de>
Co-authored-by: Gaetan Lepage <gaetan@glepage.com>

REFERENCES
- pkgs/by-name/ni/nixfmt-rfc-style
- https://github.com/nixos/cabal2nix
This commit is contained in:
João Moreira
2025-03-18 20:46:32 -03:00
parent 48a221fff3
commit 0d9c02cd88
2 changed files with 80 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
# CABAL2NIX AUTOGENERATED THIS FILE.
{
mkDerivation,
ansi-terminal,
base,
containers,
directory,
fetchgit,
filepath,
hs-highlight,
lib,
mtl,
parsec,
}:
mkDerivation {
pname = "kind-lang";
version = "0.1.0.0";
src = fetchgit {
url = "https://github.com/higherorderco/kind.git";
sha256 = "1g4pikxh42p3hikzyfzf11cs7zd1miaxapyf8pijdcxhpdx7wwl0";
rev = "5cfff210b3aeed01ebd73b2364cf9e5d2df658af";
fetchSubmodules = false;
};
isLibrary = true;
isExecutable = true;
libraryHaskellDepends = [
ansi-terminal
base
containers
directory
filepath
hs-highlight
mtl
parsec
];
executableHaskellDepends = [
ansi-terminal
base
directory
filepath
hs-highlight
mtl
];
license = lib.licenses.mit;
mainProgram = "kind";
}
+34
View File
@@ -0,0 +1,34 @@
{
haskell,
lib,
}:
let
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
# See kind-lang.cabal. GHC2024 >= ghc910.
ghcVersion = "ghc910";
haskellPackages = haskell.packages.${ghcVersion};
overrides = rec {
version = "${raw-pkg.version}-unstable-2024-12-09";
postPatch = ''
sed -i -E \
's/([ ,]+[^ =]+)[ =^><]+[0-9.]+/\1/' \
kind-lang.cabal
'';
# Test suite does nothing.
doCheck = false;
maintainers = with lib.maintainers; [ joaomoreira ];
};
# cabal2nix auto-generated derivation.nix.
raw-pkg = haskellPackages.callPackage ./derivation.nix { };
in
lib.pipe raw-pkg [
(overrideCabal overrides)
justStaticExecutables
]