mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
changing to using builtins derivation and rename
renaming to mkDerivation
This commit is contained in:
parent
f316006776
commit
04337a7e63
|
@ -1,7 +1,7 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
derivation {
|
||||
name = "hello";
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
args = [ ./hello_builder.sh ];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
derivation {
|
||||
name = "hello";
|
||||
builder = "${pkgs.bash}/bin/bash";
|
||||
args = [ ./hello_builder.sh ];
|
||||
|
|
Loading…
Reference in a new issue