2012-04-26 16:17:43 +01:00
|
|
|
{ stdenv }:
|
2006-11-02 22:44:32 +00:00
|
|
|
|
|
|
|
args:
|
|
|
|
|
2016-04-23 16:55:20 +01:00
|
|
|
# see the substituteAll in the nixpkgs documentation for usage and constaints
|
2006-11-02 22:44:32 +00:00
|
|
|
stdenv.mkDerivation ({
|
|
|
|
name = if args ? name then args.name else baseNameOf (toString args.src);
|
2006-12-10 22:24:42 +00:00
|
|
|
builder = ./substitute-all.sh;
|
2006-11-02 22:44:32 +00:00
|
|
|
inherit (args) src;
|
2012-04-26 16:17:43 +01:00
|
|
|
preferLocalBuild = true;
|
2006-11-02 22:44:32 +00:00
|
|
|
} // args)
|