Skip to content

Commit 23a1aba

Browse files
committed
fix: operable main programm meta
1 parent 37cbf2f commit 23a1aba

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

src/lib/ops/mkOperable.nix

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,20 @@ in
6666
exec ${runtimeShellBin}
6767
'';
6868
};
69+
drv = cell.ops.writeScript ({
70+
inherit runtimeInputs runtimeEnv;
71+
name = "operable-${l.getName package}";
72+
text = ''
73+
${runtimeScript}
74+
'';
75+
}
76+
// l.optionalAttrs (runtimeShell != null) {
77+
inherit runtimeShell;
78+
});
6979
in
7080
cell.ops.lazyDerivation {
71-
inherit meta;
72-
derivation =
73-
cell.ops.writeScript
74-
({
75-
inherit runtimeInputs runtimeEnv;
76-
name = "operable-${l.getName package}";
77-
text = ''
78-
${runtimeScript}
79-
'';
80-
}
81-
// l.optionalAttrs (runtimeShell != null) {
82-
inherit runtimeShell;
83-
});
81+
meta = meta // {inherit (drv.meta) mainProgramm;};
82+
derivation = drv;
8483
passthru =
8584
# These attributes are useful for informing later stages
8685
{

src/lib/ops/writeScript.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let
2-
inherit (inputs) nixpkgs std;
2+
inherit (inputs) nixpkgs;
33
l = nixpkgs.lib // builtins;
44
in
55
{

0 commit comments

Comments
 (0)