File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 11let
2- inherit ( inputs ) nixpkgs std ;
2+ inherit ( inputs ) nixpkgs ;
33 l = nixpkgs . lib // builtins ;
44in
55 {
You can’t perform that action at this time.
0 commit comments