-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* with removed from first line example no longer starts with with (import <nixpkgs> {}); * added inherit example and comments. Co-authored-by: Valentin Gagarin <[email protected]>
- Loading branch information
1 parent
4d59f3b
commit 29e1e27
Showing
3 changed files
with
30 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
with (import <nixpkgs> {}); | ||
derivation { | ||
name = "simple"; | ||
builder = "${bash}/bin/bash"; | ||
args = [ ./simple_builder.sh ]; | ||
inherit gcc coreutils; | ||
src = ./simple.c; | ||
system = builtins.currentSystem; | ||
} | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
in | ||
pkgs.stdenv.mkDerivation { | ||
name = "simple"; | ||
builder = "${pkgs.bash}/bin/bash"; | ||
args = [ ./simple_builder.sh ]; | ||
gcc = pkgs.gcc; | ||
coreutils = pkgs.coreutils; | ||
src = ./simple.c; | ||
system = builtins.currentSystem; | ||
} |
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,11 @@ | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
in | ||
pkgs.stdenv.mkDerivation { | ||
name = "simple"; | ||
builder = "${pkgs.bash}/bin/bash"; | ||
args = [ ./simple_builder.sh ]; | ||
inherit (pkgs) gcc coreutils; | ||
src = ./simple.c; | ||
system = builtins.currentSystem; | ||
} |