dart.xdg_directories: init (#363174)
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
copyDesktopItems,
|
||||
imagemagick,
|
||||
makeWrapper,
|
||||
xdg-user-dirs,
|
||||
}:
|
||||
let
|
||||
# fetch simple-icons directly to avoid cloning with submodules,
|
||||
@@ -89,9 +88,6 @@ flutter324.buildFlutterApplication rec {
|
||||
done
|
||||
|
||||
install -Dm444 linux/packaging/ente_auth.appdata.xml -t $out/share/metainfo
|
||||
|
||||
wrapProgram $out/bin/ente_auth \
|
||||
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{ lib
|
||||
, flutter327
|
||||
, mpv-unwrapped
|
||||
, xdg-user-dirs
|
||||
, patchelf
|
||||
, fetchFromGitHub
|
||||
, copyDesktopItems
|
||||
@@ -40,10 +39,6 @@ flutter327.buildFlutterApplication {
|
||||
install -Dm644 $src/assets/icon/icon_foreground.svg $out/share/icons/hicolor/scalable/apps/finamp.svg
|
||||
'';
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
|
||||
'';
|
||||
|
||||
desktopItems = [(makeDesktopItem {
|
||||
name = "Finamp";
|
||||
desktopName = "Finamp";
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
mimalloc,
|
||||
mpv,
|
||||
mpv-unwrapped,
|
||||
xdg-user-dirs,
|
||||
}:
|
||||
flutter324.buildFlutterApplication rec {
|
||||
pname = "kazumi";
|
||||
@@ -110,10 +109,6 @@ flutter324.buildFlutterApplication rec {
|
||||
install -Dm0644 ./assets/images/logo/logo_linux.png $out/share/icons/hicolor/512x512/apps/io.github.Predidit.Kazumi.png
|
||||
'';
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Watch Animes online with danmaku support";
|
||||
homepage = "https://github.com/Predidit/Kazumi";
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
libvdpau,
|
||||
rustPlatform,
|
||||
stdenv,
|
||||
xdg-user-dirs,
|
||||
zenity,
|
||||
copyDesktopItems,
|
||||
makeDesktopItem,
|
||||
@@ -161,7 +160,6 @@ flutter324.buildFlutterApplication {
|
||||
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib" \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
xdg-user-dirs
|
||||
zenity
|
||||
]
|
||||
}"
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
libpulseaudio,
|
||||
libdrm,
|
||||
mesa,
|
||||
xdg-user-dirs,
|
||||
libva,
|
||||
libva1,
|
||||
libvdpau,
|
||||
@@ -104,10 +103,6 @@ flutter324.buildFlutterApplication rec {
|
||||
ln -s ${lib.getLib libvdpau}/lib/libvdpau.so.1 $out/app/${pname}/lib/libvdpau.so.1
|
||||
'';
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Anime1 third-party client with bullet screen";
|
||||
homepage = "https://github.com/Predidit/oneAnime";
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
makeDesktopItem,
|
||||
wrapGAppsHook3,
|
||||
copyDesktopItems,
|
||||
xdg-user-dirs,
|
||||
}:
|
||||
flutter324.buildFlutterApplication rec {
|
||||
pname = "pilipalax";
|
||||
@@ -111,8 +110,7 @@ flutter324.buildFlutterApplication rec {
|
||||
'';
|
||||
|
||||
extraWrapProgramArgs = ''
|
||||
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib" \
|
||||
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
|
||||
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -16,4 +16,5 @@
|
||||
sqlite3_flutter_libs = callPackage ./sqlite3_flutter_libs { };
|
||||
system_tray = callPackage ./system-tray { };
|
||||
super_native_extensions = callPackage ./super_native_extensions { };
|
||||
xdg_directories = callPackage ./xdg_directories { };
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
stdenv,
|
||||
xdg-user-dirs,
|
||||
}:
|
||||
|
||||
{ version, src, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xdg_directories";
|
||||
inherit version src;
|
||||
inherit (src) passthru;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./lib/xdg_directories.dart \
|
||||
--replace-fail "'xdg-user-dir'," "'${xdg-user-dirs}/bin/xdg-user-dir',"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp -r . $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user