mirror of
https://github.com/NixOS/nix-pills
synced 2024-11-10 05:44:14 +00:00
Merge pull request #235 from noamraph/patch-1
07-working-derivation.md: use `derivation` instead of `mkDerivation`
This commit is contained in:
commit
3febfc1330
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ Drop out of nix repl and write a file `simple.nix`:
|
|||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
derivation {
|
||||
name = "simple";
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
args = [ ./simple_builder.sh ];
|
||||
|
@ -222,7 +222,7 @@ Below is a revised version of the `simple.nix` file, using the `inherit` keyword
|
|||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
derivation {
|
||||
name = "simple";
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
args = [ ./simple_builder.sh ];
|
||||
|
|
Loading…
Reference in a new issue