mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
e0464e4788
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, expat, ncurses, openssl }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "boinctui";
|
|
version = "2.7.1-unstable-2023-12-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "suleman1971";
|
|
repo = "boinctui";
|
|
rev = "6656f288580170121f53d0e68c35077f5daa700b"; # no proper release tags unfortunaly
|
|
hash = "sha256-MsSTvlTt54ukQXyVi8LiMFIkv8FQJOt0q30iDxf4TsE=";
|
|
};
|
|
|
|
# Fix wrong path; @docdir@ already gets replaced with the correct store path
|
|
postPatch = ''
|
|
substituteInPlace Makefile.in \
|
|
--replace 'DOCDIR = $(DATAROOTDIR)@docdir@' 'DOCDIR = @docdir@'
|
|
'';
|
|
|
|
outputs = [ "out" "man" ];
|
|
separateDebugInfo = stdenv.hostPlatform.isLinux;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = [ "--without-gnutls" ];
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ expat ncurses openssl ];
|
|
|
|
meta = with lib; {
|
|
description = "Curses based fullscreen BOINC manager";
|
|
homepage = "https://github.com/suleman1971/boinctui";
|
|
changelog = "https://github.com/suleman1971/boinctui/blob/master/changelog";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ christoph-heiss ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "boinctui";
|
|
};
|
|
}
|