-
-
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.
changing to using builtins derivation and rename
renaming to mkDerivation
- Loading branch information
Showing
4 changed files
with
15 additions
and
13 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,11 @@ | ||
with (import <nixpkgs> {}); | ||
derivation { | ||
name = "hello"; | ||
builder = "${bash}/bin/bash"; | ||
args = [ ./builder.sh ]; | ||
buildInputs = [ gnutar gzip gnumake gcc coreutils gawk gnused gnugrep binutils.bintools ]; | ||
src = ./hello-2.10.tar.gz; | ||
system = builtins.currentSystem; | ||
} | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
in | ||
derivation { | ||
name = "hello"; | ||
builder = "${pkgs.bash}/bin/bash"; | ||
args = [ ./builder.sh ]; | ||
buildInputs = with pkgs; [ gnutar gzip gnumake gcc coreutils gawk gnused gnugrep binutils.bintools ]; | ||
src = ./hello-2.12.1.tar.gz; | ||
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
let | ||
pkgs = import <nixpkgs> {}; | ||
mymkDerivation = import ./autotools.nix pkgs; | ||
mkDerivation = import ./autotools.nix pkgs; | ||
in | ||
mymkDerivation { | ||
mkDerivation { | ||
name = "hello"; | ||
src = ./hello-2.12.1.tar.gz; | ||
} |
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