about summary refs log tree commit diff
path: root/pkgs/applications/editors/oed
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@disroot.org>2022-04-21 18:59:58 +0300
committerNikolay Korotkiy <sikmir@disroot.org>2022-04-23 10:08:22 +0300
commit4a72aad35692b4a14981cfe9dacbfe9921a53f31 (patch)
tree6a70976a5b270363fa0a3229152df4d3a2c2366f /pkgs/applications/editors/oed
parent15427feaeb182675adaada5e8af21a24ef80d292 (diff)
downloadnixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.tar
nixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.tar.gz
nixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.tar.bz2
nixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.tar.lz
nixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.tar.xz
nixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.tar.zst
nixlib-4a72aad35692b4a14981cfe9dacbfe9921a53f31.zip
oed: fix cross-compilation
Diffstat (limited to 'pkgs/applications/editors/oed')
-rw-r--r--pkgs/applications/editors/oed/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/editors/oed/default.nix b/pkgs/applications/editors/oed/default.nix
index 2281ca8c08b3..f4012220c50d 100644
--- a/pkgs/applications/editors/oed/default.nix
+++ b/pkgs/applications/editors/oed/default.nix
@@ -14,6 +14,15 @@ stdenv.mkDerivation rec {
     hash = "sha256-Z8B1RIFve3UPj+9G/WJX0BNc2ynG/qtoGfoesarYGz8=";
   };
 
+  postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
+    substituteInPlace configure --replace "./conftest" "echo"
+  '';
+
+  installPhase = ''
+    install -m755 -Dt $out/bin ed
+    install -m644 -Dt $out/share/man/man1 ed.1
+  '';
+
   meta = with lib; {
     homepage = "https://github.com/ibara/oed";
     description = "Portable ed editor from OpenBSD";