mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchFromGitHub
|
|
, ncurses
|
|
, autoreconfHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xstow";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "majorkingleo";
|
|
repo = "xstow";
|
|
rev = version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-c89+thw5N3Cgl1Ww+W7c3YsyhNJMLlreedvdWJFY3WY=";
|
|
};
|
|
|
|
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 ""
|
|
'';
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Replacement of GNU Stow written in C++";
|
|
homepage = "https://github.com/majorkingleo/xstow";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ nzbr ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|