update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -33,17 +33,23 @@ once you've included the nix-writers as overlay you can use the scripts to creat
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
# Haskell example
|
# Haskell example
|
||||||
(writeHaskell "nix-writers-example-haskell" {
|
(writeHaskellPackage "nix-writers-example-haskell" {
|
||||||
executables."nix-writers-example-haskell".text = ''main = print "this is a writeHaskell example"'';
|
executables."nix-writers-example-haskell".text = ''
|
||||||
|
main = print "this is a writeHaskell example"
|
||||||
|
'';
|
||||||
})
|
})
|
||||||
|
|
||||||
# C example
|
# C example
|
||||||
(writeC "nix-writers-example-c" {
|
(writeC "nix-writers-example-c" {
|
||||||
destination = "/bin/nix-writers-example-c";
|
destination = "/bin/nix-writers-example-c";
|
||||||
} ''int main() { printf("this is a writeC example!\n"); }'')
|
} ''
|
||||||
|
int main() { printf("this is a writeC example!\n"); }
|
||||||
|
'')
|
||||||
|
|
||||||
# Dash example
|
# Dash example
|
||||||
(writeDashBin "nix-writers-example-dash" ''echo "this is a writeDash example!"'')
|
(writeDashBin "nix-writers-example-dash" ''
|
||||||
|
echo "this is a writeDash example!"
|
||||||
|
'')
|
||||||
|
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user