Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
467 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
zenity,
}:
{ version, src, ... }:
stdenv.mkDerivation {
pname = "file_picker";
inherit version src;
inherit (src) passthru;
postPatch = lib.optionalString (lib.versionOlder version "10.3.0") ''
substituteInPlace lib/src/linux/file_picker_linux.dart \
--replace-fail "isExecutableOnPath('zenity')" "'${lib.getExe zenity}'"
'';
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
}