nixpkgs/pkgs/tools/misc/xstow/default.nix

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

34 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, ncurses, autoreconfHook }:
2021-10-12 20:46:10 +00:00
stdenv.mkDerivation rec {
pname = "xstow";
2022-08-02 08:26:34 +00:00
version = "1.1.0";
2021-10-12 20:46:10 +00:00
src = fetchurl {
url = "http://downloads.sourceforge.net/sourceforge/${pname}/${pname}-${version}.tar.bz2";
2022-08-02 08:26:34 +00:00
sha256 = "sha256-wXQ5XSmogAt1torfarrqIU4nBYj69MGM/HBYqeIE+dw=";
2021-10-12 20:46:10 +00:00
};
nativeBuildInputs = [ autoreconfHook ];
# Upstream seems to try to support building both static and dynamic version
# of executable on dynamic systems, but fails with link error when attempting
# to cross-build "xstow-static" to the system where "xstow" proper is static.
postPatch = lib.optionalString stdenv.hostPlatform.isStatic ''
substituteInPlace src/Makefile.am --replace xstow-static ""
substituteInPlace src/Makefile.am --replace xstow-stow ""
'';
2021-10-12 20:46:10 +00:00
buildInputs = [
ncurses
];
meta = with lib; {
broken = stdenv.isDarwin;
2021-10-12 20:46:10 +00:00
description = "A replacement of GNU Stow written in C++";
homepage = "https://xstow.sourceforge.net";
2021-10-12 20:46:10 +00:00
license = licenses.gpl2Only;
maintainers = with maintainers; [ nzbr ];
platforms = platforms.unix;
};
}