Skip to content

Commit

Permalink
fix: operable main programm meta
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Apr 30, 2024
1 parent 37cbf2f commit 23a1aba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
25 changes: 12 additions & 13 deletions src/lib/ops/mkOperable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,20 @@ in
exec ${runtimeShellBin}
'';
};
drv = cell.ops.writeScript ({
inherit runtimeInputs runtimeEnv;
name = "operable-${l.getName package}";
text = ''
${runtimeScript}
'';
}
// l.optionalAttrs (runtimeShell != null) {
inherit runtimeShell;
});
in
cell.ops.lazyDerivation {
inherit meta;
derivation =
cell.ops.writeScript
({
inherit runtimeInputs runtimeEnv;
name = "operable-${l.getName package}";
text = ''
${runtimeScript}
'';
}
// l.optionalAttrs (runtimeShell != null) {
inherit runtimeShell;
});
meta = meta // {inherit (drv.meta) mainProgramm;};
derivation = drv;
passthru =
# These attributes are useful for informing later stages
{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ops/writeScript.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let
inherit (inputs) nixpkgs std;
inherit (inputs) nixpkgs;
l = nixpkgs.lib // builtins;
in
{
Expand Down

0 comments on commit 23a1aba

Please sign in to comment.