mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #327361 from arthsmn/flatpak-builder-update
This commit is contained in:
commit
11964fa63e
2 changed files with 12 additions and 10 deletions
|
@ -5,8 +5,11 @@ makeInstalledTest {
|
||||||
|
|
||||||
testConfig = {
|
testConfig = {
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
xdg.portal.enable = true;
|
xdg.portal = {
|
||||||
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
enable = true;
|
||||||
|
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||||
|
config.common.default = "gtk";
|
||||||
|
};
|
||||||
environment.systemPackages = with pkgs; [ flatpak-builder ] ++ flatpak-builder.installedTestsDependencies;
|
environment.systemPackages = with pkgs; [ flatpak-builder ] ++ flatpak-builder.installedTestsDependencies;
|
||||||
virtualisation.diskSize = 2048;
|
virtualisation.diskSize = 2048;
|
||||||
};
|
};
|
||||||
|
|
|
@ -41,19 +41,16 @@
|
||||||
, attr
|
, attr
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
installed_testdir = "${placeholder "installedTests"}/libexec/installed-tests/flatpak-builder";
|
|
||||||
in stdenv.mkDerivation (finalAttrs: {
|
|
||||||
pname = "flatpak-builder";
|
pname = "flatpak-builder";
|
||||||
version = "1.4.2";
|
version = "1.4.4";
|
||||||
|
|
||||||
outputs = [ "out" "doc" "man" "installedTests" ];
|
outputs = [ "out" "doc" "man" "installedTests" ];
|
||||||
|
|
||||||
# fetchFromGitHub fetches an archive which does not contain the full source (https://github.com/flatpak/flatpak-builder/issues/558)
|
# fetchFromGitHub fetches an archive which does not contain the full source (https://github.com/flatpak/flatpak-builder/issues/558)
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
# TODO: remove the '-fixed-libglnx' in the next release
|
url = "https://github.com/flatpak/flatpak-builder/releases/download/${finalAttrs.version}/flatpak-builder-${finalAttrs.version}.tar.xz";
|
||||||
url = "https://github.com/flatpak/flatpak-builder/releases/download/${finalAttrs.version}/flatpak-builder-${finalAttrs.version}-fixed-libglnx.tar.xz";
|
hash = "sha256-3CcVk5S6qiy1I/Uvh0Ry/1DRYZgyMyZMoqIuhQdB7Ho=";
|
||||||
hash = "sha256-wEG5dOA6LC082oig7+Hs9p+a30KhdY6sNB1VXnedBZY=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -124,7 +121,9 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# Installed tests
|
# Installed tests
|
||||||
postFixup = ''
|
postFixup = let
|
||||||
|
installed_testdir = "${placeholder "installedTests"}/libexec/installed-tests/flatpak-builder";
|
||||||
|
in ''
|
||||||
for file in ${installed_testdir}/{test-builder.sh,test-builder-python.sh,test-builder-deprecated.sh}; do
|
for file in ${installed_testdir}/{test-builder.sh,test-builder-python.sh,test-builder-deprecated.sh}; do
|
||||||
patchShebangs $file
|
patchShebangs $file
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue