Last active
November 20, 2019 08:24
-
-
Save darthdeus/b1765e87f5464241a308fd57b8ba92b6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pkgs: attrs: | |
with pkgs; | |
let defaultAttrs = { | |
builder = "${bash}/bin/bash"; | |
args = [ ./builder.sh ]; | |
baseInputs = [ gnutar gzip gnumake gcc binutils-unwrapped coreutils gawk gnused gnugrep findutils patchelf ]; | |
buildInputs = []; | |
system = builtins.currentSystem; | |
}; | |
in | |
derivation (defaultAttrs // attrs) |
This file contains hidden or 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
let | |
pkgs = import <nixpkgs> {}; | |
mkDerivation = import ./autotools.nix pkgs; | |
in mkDerivation { | |
name = "hello"; | |
src = ./hello-2.10.tar.gz; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment