Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -10935,6 +10935,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";
46 changes: 46 additions & 0 deletions pkgs/by-name/ki/kind-lang/derivation.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 34 additions & 0 deletions pkgs/by-name/ki/kind-lang/package.nix
Original file line number Diff line number Diff line change
@@ -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
]