nix/packages: update hbrainfuck, prop_solveur

This commit is contained in:
Primrose 2025-05-03 09:45:14 +02:00
parent f7717647c9
commit 82300df9b1
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
5 changed files with 30 additions and 30 deletions

View file

@ -99,38 +99,26 @@ in rec {
ltex-ls-plus = pkgs.callPackage ./ltex-ls-plus.nix {};
# my repositories
hbf = mkHaskellPackage {
hbrainfuck = mkHaskellPackage {
name = "hbrainfuck";
src = pkgs.fetchFromGitea {
domain = "git.confusedcompiler.org";
owner = "leana8959";
repo = "hbrainfuck";
rev = "81c1d0d7ef1595bda1f8e4d86592d06e33bfd422";
hash = "sha256-NSCqJwcM5UgsAMpIpDSTy534hEK0wMicqwoE3DC8CGk=";
};
apply = p:
p.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [pkgs.installShellFiles];
postInstall =
(old.postInstall or "")
+ ''
installShellCompletion --cmd hbf \
--bash <("$out/bin/hbf" --bash-completion-script "$out/bin/hbf") \
--fish <("$out/bin/hbf" --fish-completion-script "$out/bin/hbf") \
--zsh <("$out/bin/hbf" --zsh-completion-script "$out/bin/hbf")
'';
});
src = sources.hbrainfuck;
# apply = p:
# p.overrideAttrs (old: {
# nativeBuildInputs = (old.nativeBuildInputs or []) ++ [pkgs.installShellFiles];
# postInstall =
# (old.postInstall or "")
# + ''
# installShellCompletion --cmd hbrainfuck \
# --bash <("$out/bin/hbrainfuck" --bash-completion-script "$out/bin/hbrainfuck") \
# --fish <("$out/bin/hbrainfuck" --fish-completion-script "$out/bin/hbrainfuck") \
# --zsh <("$out/bin/hbrainfuck" --zsh-completion-script "$out/bin/hbrainfuck")
# '';
# });
};
prop-solveur = mkHaskellPackage {
name = "prop-solveur";
src = pkgs.fetchFromGitea {
domain = "git.confusedcompiler.org";
owner = "leana8959";
repo = "prop_solveur";
rev = "814082ed223f77f15484fcd62ab130c7c7ba1b17";
hash = "sha256-YNl9n3T0NfPQxbkLo4WVbg9huwAxKy96jQJxzt77z2w=";
};
src = sources.prop_solveur;
apply = p:
p.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [pkgs.installShellFiles];