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
61
pkgs/applications/misc/spacefm/default.nix
Normal file
61
pkgs/applications/misc/spacefm/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ pkgs, fetchFromGitHub, lib, stdenv, gtk3, udev, desktop-file-utils
|
||||
, shared-mime-info, intltool, pkg-config, wrapGAppsHook, ffmpegthumbnailer
|
||||
, jmtpfs, ifuseSupport ? false, ifuse ? null, lsof, udisks2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "spacefm";
|
||||
version = "1.0.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "IgnorantGuru";
|
||||
repo = "spacefm";
|
||||
rev = version;
|
||||
sha256 = "089r6i40lxcwzp60553b18f130asspnzqldlpii53smz52kvpirx";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix compilation error due to missing include
|
||||
./glibc-fix.patch
|
||||
|
||||
# restrict GDK backends to only X11
|
||||
./x11-only.patch
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-bash-path=${pkgs.bash}/bin/bash"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
configureFlags="$configureFlags --sysconfdir=$out/etc"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm -f $out/etc/spacefm/spacefm.conf
|
||||
ln -s /etc/spacefm/spacefm.conf $out/etc/spacefm/spacefm.conf
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
gtk3 udev desktop-file-utils shared-mime-info intltool
|
||||
wrapGAppsHook ffmpegthumbnailer jmtpfs lsof udisks2
|
||||
] ++ (if ifuseSupport then [ ifuse ] else []);
|
||||
# Introduced because ifuse doesn't build due to CVEs in libplist
|
||||
# Revert when libplist builds again…
|
||||
|
||||
meta = with lib; {
|
||||
description = "A multi-panel tabbed file manager";
|
||||
longDescription = ''
|
||||
Multi-panel tabbed file and desktop manager for Linux
|
||||
with built-in VFS, udev- or HAL-based device manager,
|
||||
customizable menu system, and bash integration
|
||||
'';
|
||||
homepage = "http://ignorantguru.github.io/spacefm/";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ jagajaga obadz ];
|
||||
};
|
||||
}
|
||||
12
pkgs/applications/misc/spacefm/glibc-fix.patch
Normal file
12
pkgs/applications/misc/spacefm/glibc-fix.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/main.c b/src/main.c
|
||||
index 27f5614..2b45708 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
10
pkgs/applications/misc/spacefm/x11-only.patch
Normal file
10
pkgs/applications/misc/spacefm/x11-only.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--- a/src/main.c 2021-02-09 13:54:32.847364236 +0100
|
||||
+++ b/src/main.c 2021-02-09 10:41:51.541203271 +0100
|
||||
@@ -1350,6 +1351,7 @@
|
||||
vfs_file_monitor_clean();
|
||||
return 1;
|
||||
}
|
||||
+ gdk_set_allowed_backends("x11");
|
||||
gtk_init (&argc, &argv);
|
||||
int ret = custom_dialog_init( argc, argv );
|
||||
if ( ret != 0 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue