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

@ -67,7 +67,7 @@ jobs:
matrix: matrix:
package: package:
- typst-bot - typst-bot
- hbf - hbrainfuck
- prop-solveur - prop-solveur
- hutils - hutils
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -24,7 +24,7 @@ in {
# fun # fun
# myPkgs.prop-solveur # myPkgs.prop-solveur
# myPkgs.hbf # myPkgs.hbrainfuck
# pkgs.lucky-commit # pkgs.lucky-commit
# pretty tui tools # pretty tui tools

View file

@ -24,7 +24,7 @@ in {
# fun # fun
myPkgs.prop-solveur myPkgs.prop-solveur
myPkgs.hbf myPkgs.hbrainfuck
pkgs.lucky-commit pkgs.lucky-commit
# research # research

View file

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

View file

@ -37,6 +37,12 @@
"url": "https://github.com/edolstra/flake-compat/archive/v1.1.0.tar.gz", "url": "https://github.com/edolstra/flake-compat/archive/v1.1.0.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"hbrainfuck": {
"branch": "mistress",
"repo": "https://git.confusedcompiler.org/leana8959/hbrainfuck",
"rev": "796aae9bdb222e8e0431627eb11a3e3a71c1ffef",
"type": "git"
},
"home-manager": { "home-manager": {
"branch": "release-24.11", "branch": "release-24.11",
"description": "Manage a user environment using Nix [maintainer=@rycee] ", "description": "Manage a user environment using Nix [maintainer=@rycee] ",
@ -163,6 +169,12 @@
"url": "https://github.com/NixOS/nixpkgs/archive/9d3ae807ebd2981d593cddd0080856873139aa40.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/9d3ae807ebd2981d593cddd0080856873139aa40.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}, },
"prop_solveur": {
"branch": "mistress",
"repo": "https://git.confusedcompiler.org/leana8959/prop_solveur",
"rev": "cc2430dc5a396b01d02bd925070ce5d009d05bc4",
"type": "git"
},
"url-eater": { "url-eater": {
"branch": "mistress", "branch": "mistress",
"description": "Clean unnecessary parameters from URLs copied to clipboard", "description": "Clean unnecessary parameters from URLs copied to clipboard",