diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-04-21 18:59:58 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-04-23 10:08:22 +0300 |
commit | 4a72aad35692b4a14981cfe9dacbfe9921a53f31 (patch) | |
tree | 6a70976a5b270363fa0a3229152df4d3a2c2366f /pkgs/applications/editors/oed | |
parent | 15427feaeb182675adaada5e8af21a24ef80d292 (diff) | |
download | nixlib-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.nix | 9 |
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"; |