Skip to content

Instantly share code, notes, and snippets.

@darthdeus
Last active November 20, 2019 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darthdeus/b1765e87f5464241a308fd57b8ba92b6 to your computer and use it in GitHub Desktop.
Save darthdeus/b1765e87f5464241a308fd57b8ba92b6 to your computer and use it in GitHub Desktop.
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)
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