kind-lang: init at 0.1.0.0-unstable-2024-12-09 (#371934)
This commit is contained in:
@@ -11415,6 +11415,13 @@
|
||||
githubId = 22916782;
|
||||
name = "Joan Massachs";
|
||||
};
|
||||
joaomoreira = {
|
||||
matrix = "@joaomoreira:matrix.org";
|
||||
github = "joaoymoreira";
|
||||
githubId = 151087767;
|
||||
name = "João Moreira";
|
||||
keys = [ { fingerprint = "F457 0A3A 5F89 22F8 F572 E075 EF8B F2C8 C5F4 097D"; } ];
|
||||
};
|
||||
joaquintrinanes = {
|
||||
email = "hi@joaquint.io";
|
||||
github = "JoaquinTrinanes";
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
@@ -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
|
||||
]
|
||||
Reference in New Issue
Block a user