Skip to content

Commit

Permalink
changing to using builtins derivation and rename
Browse files Browse the repository at this point in the history
renaming to mkDerivation
  • Loading branch information
henrik-ch committed Jun 5, 2023
1 parent f316006 commit 04337a7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pills/08/hello-nix-darwin.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
derivation {
name = "hello";
builder = "${pkgs.bash}/bin/bash";
args = [ ./hello_builder.sh ];
Expand Down
20 changes: 11 additions & 9 deletions pills/08/hello-nix-rev-1.txt
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;
}
4 changes: 2 additions & 2 deletions pills/08/hello-nix-rev-2.txt
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;
}
2 changes: 1 addition & 1 deletion pills/08/hello-nix.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
derivation {
name = "hello";
builder = "${pkgs.bash}/bin/bash";
args = [ ./hello_builder.sh ];
Expand Down

0 comments on commit 04337a7

Please sign in to comment.