-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will: - Fix and run `make nixpkgs` to update the dependencies - Reduce duplication by using `overlay.nix` - Pushed manually to cachix to refresh the build cache - Switched to `pcre2` instead of `pcre` - Removed `static.nix`, since it's not required any more Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
- Loading branch information
1 parent
04cf7ba
commit b0bdc23
Showing
10 changed files
with
60 additions
and
153 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default.nix |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
let | ||
static = import ./static.nix; | ||
pkgs = (import ./nixpkgs.nix { | ||
crossSystem = { config = "aarch64-unknown-linux-gnu"; }; | ||
overlays = [ | ||
(final: pkg: { | ||
pcre = (static pkg.pcre).overrideAttrs (x: { | ||
configureFlags = x.configureFlags ++ [ "--enable-static" ]; | ||
}); | ||
}) | ||
]; | ||
config = { | ||
packageOverrides = pkg: { | ||
libseccomp = (static pkg.libseccomp); | ||
glib = (static pkg.glib).overrideAttrs (x: { | ||
outputs = [ "bin" "out" "dev" ]; | ||
mesonFlags = [ | ||
"-Ddefault_library=static" | ||
"-Ddevbindir=${placeholder ''dev''}/bin" | ||
"-Dgtk_doc=false" | ||
"-Dnls=disabled" | ||
]; | ||
postInstall = '' | ||
moveToOutput "share/glib-2.0" "$dev" | ||
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev" | ||
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|" | ||
sed '1i#line 1 "${x.pname}-${x.version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \ | ||
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c | ||
''; | ||
}); | ||
}; | ||
}; | ||
}); | ||
self = import ./derivation.nix { inherit pkgs; }; | ||
in | ||
self | ||
(import ./nixpkgs.nix { | ||
crossSystem = { | ||
config = "aarch64-unknown-linux-gnu"; | ||
}; | ||
overlays = [ (import ./overlay.nix) ]; | ||
}).callPackage ./derivation.nix | ||
{ } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
let | ||
static = import ./static.nix; | ||
pkgs = (import ./nixpkgs.nix { | ||
crossSystem = { config = "powerpc64le-unknown-linux-gnu"; }; | ||
overlays = [ | ||
(final: pkg: { | ||
pcre = (static pkg.pcre).overrideAttrs (x: { | ||
configureFlags = x.configureFlags ++ [ "--enable-static" ]; | ||
}); | ||
}) | ||
]; | ||
config = { | ||
packageOverrides = pkg: { | ||
libseccomp = (static pkg.libseccomp); | ||
glib = (static pkg.glib).overrideAttrs (x: { | ||
outputs = [ "bin" "out" "dev" ]; | ||
mesonFlags = [ | ||
"-Ddefault_library=static" | ||
"-Ddevbindir=${placeholder ''dev''}/bin" | ||
"-Dgtk_doc=false" | ||
"-Dnls=disabled" | ||
]; | ||
postInstall = '' | ||
moveToOutput "share/glib-2.0" "$dev" | ||
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev" | ||
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|" | ||
sed '1i#line 1 "${x.pname}-${x.version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \ | ||
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c | ||
''; | ||
}); | ||
}; | ||
}; | ||
}); | ||
self = import ./derivation.nix { inherit pkgs; }; | ||
in | ||
self | ||
(import ./nixpkgs.nix { | ||
crossSystem = { | ||
config = "powerpc64le-unknown-linux-gnu"; | ||
}; | ||
overlays = [ (import ./overlay.nix) ]; | ||
}).callPackage ./derivation.nix | ||
{ } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,7 @@ | ||
let | ||
static = import ./static.nix; | ||
pkgs = (import ./nixpkgs.nix { | ||
crossSystem = { config = "riscv64-unknown-linux-gnu"; }; | ||
overlays = [ | ||
(final: pkg: { | ||
pcre = (static pkg.pcre).overrideAttrs (x: { | ||
configureFlags = x.configureFlags ++ [ "--enable-static" ]; | ||
}); | ||
}) | ||
]; | ||
config = { | ||
packageOverrides = pkg: { | ||
libseccomp = (static pkg.libseccomp); | ||
glib = (static pkg.glib).overrideAttrs (x: { | ||
outputs = [ "bin" "out" "dev" ]; | ||
mesonFlags = [ | ||
"-Ddefault_library=static" | ||
"-Ddevbindir=${placeholder ''dev''}/bin" | ||
"-Dgtk_doc=false" | ||
"-Dnls=disabled" | ||
]; | ||
postInstall = '' | ||
moveToOutput "share/glib-2.0" "$dev" | ||
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev" | ||
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|" | ||
sed '1i#line 1 "${x.pname}-${x.version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \ | ||
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c | ||
''; | ||
}); | ||
}; | ||
}; | ||
}); | ||
self = import ./derivation.nix { inherit pkgs; }; | ||
in | ||
self | ||
(import ./nixpkgs.nix { | ||
crossSystem = { | ||
config = "riscv64-unknown-linux-gnu"; | ||
}; | ||
overlays = [ (import ./overlay.nix) ]; | ||
}).callPackage ./derivation.nix | ||
{ } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,4 @@ | ||
{ system ? builtins.currentSystem }: | ||
let | ||
static = import ./static.nix; | ||
pkgs = (import ./nixpkgs.nix { | ||
overlays = [ | ||
(final: pkg: { | ||
pcre = (static pkg.pcre).overrideAttrs (x: { | ||
configureFlags = x.configureFlags ++ [ "--enable-static" ]; | ||
}); | ||
}) | ||
]; | ||
config = { | ||
packageOverrides = pkg: { | ||
libseccomp = (static pkg.libseccomp); | ||
glib = (static pkg.glib).overrideAttrs (x: { | ||
outputs = [ "bin" "out" "dev" ]; | ||
mesonFlags = [ | ||
"-Ddefault_library=static" | ||
"-Ddevbindir=${placeholder ''dev''}/bin" | ||
"-Dgtk_doc=false" | ||
"-Dnls=disabled" | ||
]; | ||
}); | ||
}; | ||
}; | ||
}); | ||
self = import ./derivation.nix { inherit pkgs; }; | ||
in | ||
self | ||
(import ./nixpkgs.nix { | ||
overlays = [ (import ./overlay.nix) ]; | ||
}).callPackage ./derivation.nix | ||
{ } |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
self: super: | ||
{ | ||
libseccomp = super.libseccomp.overrideAttrs (x: { | ||
doCheck = false; | ||
dontDisableStatic = true; | ||
}); | ||
pcre2 = super.pcre2.overrideAttrs (x: { | ||
configureFlags = x.configureFlags ++ [ "--enable-static" ]; | ||
}); | ||
glib = super.glib.overrideAttrs (x: { | ||
outputs = [ "bin" "out" "dev" ]; | ||
mesonFlags = [ | ||
"-Ddefault_library=static" | ||
"-Ddevbindir=${placeholder ''dev''}/bin" | ||
"-Dgtk_doc=false" | ||
"-Dnls=disabled" | ||
]; | ||
postInstall = '' | ||
moveToOutput "share/glib-2.0" "$dev" | ||
substituteInPlace "$dev/bin/gdbus-codegen" --replace "$out" "$dev" | ||
sed -i "$dev/bin/glib-gettextize" -e "s|^gettext_dir=.*|gettext_dir=$dev/share/glib-2.0/gettext|" | ||
sed '1i#line 1 "${x.pname}-${x.version}/include/glib-2.0/gobject/gobjectnotifyqueue.c"' \ | ||
-i "$dev"/include/glib-2.0/gobject/gobjectnotifyqueue.c | ||
''; | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.