uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/games/cataclysm-dda/lib.nix
Normal file
46
pkgs/games/cataclysm-dda/lib.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ callPackage }:
|
||||
|
||||
rec {
|
||||
buildMod = callPackage ./builder.nix {
|
||||
type = "mod";
|
||||
};
|
||||
|
||||
buildSoundPack = callPackage ./builder.nix {
|
||||
type = "soundpack";
|
||||
};
|
||||
|
||||
buildTileSet = callPackage ./builder.nix {
|
||||
type = "tileset";
|
||||
};
|
||||
|
||||
wrapCDDA = callPackage ./wrapper.nix {};
|
||||
|
||||
# Required to fix `pkgs` and `withMods` attrs after applying `overrideAttrs`.
|
||||
#
|
||||
# Example:
|
||||
# let
|
||||
# myBuild = cataclysmDDA.jenkins.latest.tiles.overrideAttrs (_: {
|
||||
# x = "hello";
|
||||
# });
|
||||
#
|
||||
# # This refers to the derivation before overriding! So, `badExample.x` is not accessible.
|
||||
# badExample = myBuild.withMods (_: []);
|
||||
#
|
||||
# # `myBuild` is correctly referred by `withMods` and `goodExample.x` is accessible.
|
||||
# goodExample = let
|
||||
# inherit (cataclysmDDA) attachPkgs pkgs;
|
||||
# in
|
||||
# (attachPkgs pkgs myBuild).withMods (_: []);
|
||||
# in
|
||||
# goodExample.x # returns "hello"
|
||||
attachPkgs = pkgs: super:
|
||||
let
|
||||
self = super.overrideAttrs (old: {
|
||||
passthru = old.passthru // {
|
||||
pkgs = pkgs.override { build = self; };
|
||||
withMods = wrapCDDA self;
|
||||
};
|
||||
});
|
||||
in
|
||||
self;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue