-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wrappers.<name>.programs attrset
- Loading branch information
1 parent
b20240e
commit 01b80d8
Showing
4 changed files
with
197 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
config, | ||
lib, | ||
name, | ||
defaults, | ||
... | ||
}: let | ||
inherit (lib) mkOption types mdDoc literalMD; | ||
in { | ||
options = { | ||
name = mkOption { | ||
type = types.str; | ||
description = mdDoc '' | ||
Name of the program. | ||
''; | ||
default = name; | ||
}; | ||
|
||
target = mkOption { | ||
type = types.str; | ||
description = mdDoc '' | ||
The final name of the program after wrapping. | ||
''; | ||
default = config.name; | ||
defaultText = literalMD "value of name"; | ||
}; | ||
}; | ||
|
||
config = { | ||
inherit | ||
(defaults) | ||
env | ||
prependFlags | ||
appendFlags | ||
pathAdd | ||
extraWrapperFlags | ||
; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters