Skip to content

Commit

Permalink
Merge pull request #153 from traP-jp/feat/#61-cobol
Browse files Browse the repository at this point in the history
  • Loading branch information
comavius authored Dec 2, 2024
2 parents 1d8646d + c8c9b91 commit 4b84800
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exec-container/compilers/cobol/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{pkgs}:
pkgs.toj-utils.simple-bin {
package = pkgs.gnucobol;
bin-name = "cobc";
}
2 changes: 2 additions & 0 deletions exec-container/compilers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
brainfuck = import ./brainfuck {inherit pkgs;};
rust = import ./rust {inherit pkgs;};
koka = import ./koka {inherit pkgs;};
cobol = import ./cobol {inherit pkgs;};
in {
all = [
golang
brainfuck
rust
koka
cobol
];
}
1 change: 1 addition & 0 deletions exec-container/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
})
(final: prev: {
toj-helper = toj-helper.packages.${system}.default;
toj-utils = import ./utils {inherit pkgs;};
})
];
};
Expand Down
7 changes: 7 additions & 0 deletions exec-container/utils/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{pkgs, ...}: {
simple-bin = {
package,
bin-name,
}:
pkgs.writeShellScriptBin bin-name "exec ${package}/bin/${bin-name} $@";
}

0 comments on commit 4b84800

Please sign in to comment.