1
0
Fork 0
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:
i97henka 2023-06-05 21:42:34 +01:00
parent f316006776
commit 04337a7e63
4 changed files with 15 additions and 13 deletions

View file

@ -1,7 +1,7 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
derivation {
name = "hello";
builder = "${pkgs.bash}/bin/bash";
args = [ ./hello_builder.sh ];

View file

@ -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;
}

View file

@ -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;
}

View file

@ -1,7 +1,7 @@
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
derivation {
name = "hello";
builder = "${pkgs.bash}/bin/bash";
args = [ ./hello_builder.sh ];