diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-05-16 15:16:08 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-05-16 15:16:08 -0400 |
commit | ddbe9191ef1549e7695e5e02e545b1b3db46edb4 (patch) | |
tree | 90e8f4e8bf5c4410b351229cdc637333bae88024 /pkgs/applications/misc | |
parent | 16b6f53910f19b84c5d8c5fb58a8ce958fc8a7d3 (diff) | |
parent | f3fcf1b0a9b0398620b5fa9b40268ef651aa373e (diff) | |
download | nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.tar nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.tar.gz nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.tar.bz2 nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.tar.lz nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.tar.xz nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.tar.zst nixlib-ddbe9191ef1549e7695e5e02e545b1b3db46edb4.zip |
Merge remote-tracking branch 'upstream/master' into staging
Keep the dontCheck because the test suite fails, get rid of the LDFLAGS hack because we don't need it!
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/chirp/default.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/misc/redshift/default.nix | 30 | ||||
-rw-r--r-- | pkgs/applications/misc/vcal/default.nix | 37 |
3 files changed, 62 insertions, 9 deletions
diff --git a/pkgs/applications/misc/chirp/default.nix b/pkgs/applications/misc/chirp/default.nix index b8fc63c2c9ed..54f36663454e 100644 --- a/pkgs/applications/misc/chirp/default.nix +++ b/pkgs/applications/misc/chirp/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { name = "chirp-daily-${version}"; - version = "20180412"; + version = "20180512"; src = fetchurl { url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${name}.tar.gz"; - sha256 = "17wpxqzifz6grw9xzg9q9vr58vm2xd50fhd64c3ngdhxcnq2dpj9"; + sha256 = "111pijr0v36n3yg0p58mgvfxvz088axnxvgfhs8cblssi931mimm"; }; nativeBuildInputs = [ makeWrapper ]; diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix index b7ab092bbc04..dc31da671e95 100644 --- a/pkgs/applications/misc/redshift/default.nix +++ b/pkgs/applications/misc/redshift/default.nix @@ -1,6 +1,12 @@ { stdenv, fetchFromGitHub, fetchurl, autoconf, automake, gettext, intltool -, libtool, pkgconfig, wrapGAppsHook, wrapPython, geoclue2, gobjectIntrospection -, gtk3, python, pygobject3, pyxdg, libdrm, libxcb, hicolor-icon-theme }: +, libtool, pkgconfig, wrapGAppsHook, wrapPython, gobjectIntrospection +, gtk3, python, pygobject3, hicolor-icon-theme, pyxdg + +, withCoreLocation ? stdenv.isDarwin, CoreLocation, Foundation, Cocoa +, withQuartz ? stdenv.isDarwin, ApplicationServices +, withRandr ? stdenv.isLinux, libxcb +, withDrm ? stdenv.isLinux, libdrm +, withGeoclue ? stdenv.isLinux, geoclue }: stdenv.mkDerivation rec { name = "redshift-${version}"; @@ -29,15 +35,25 @@ stdenv.mkDerivation rec { wrapPython ]; + configureFlags = [ + "--enable-randr=${if withRandr then "yes" else "no"}" + "--enable-geoclue2=${if withGeoclue then "yes" else "no"}" + "--enable-drm=${if withDrm then "yes" else "no"}" + "--enable-quartz=${if withQuartz then "yes" else "no"}" + "--enable-corelocation=${if withCoreLocation then "yes" else "no"}" + ]; + buildInputs = [ - geoclue2 gobjectIntrospection gtk3 - libdrm - libxcb python hicolor-icon-theme - ]; + ] ++ stdenv.lib.optional withRandr libxcb + ++ stdenv.lib.optional withGeoclue geoclue + ++ stdenv.lib.optional withDrm libdrm + ++ stdenv.lib.optional withQuartz ApplicationServices + ++ stdenv.lib.optionals withCoreLocation [ CoreLocation Foundation Cocoa ] + ; pythonPath = [ pygobject3 pyxdg ]; @@ -59,7 +75,7 @@ stdenv.mkDerivation rec { ''; license = licenses.gpl3Plus; homepage = http://jonls.dk/redshift; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ yegortimoshenko ]; }; } diff --git a/pkgs/applications/misc/vcal/default.nix b/pkgs/applications/misc/vcal/default.nix new file mode 100644 index 000000000000..0964be1f1ea1 --- /dev/null +++ b/pkgs/applications/misc/vcal/default.nix @@ -0,0 +1,37 @@ +{ stdenv, lib, fetchurl, perl }: + +stdenv.mkDerivation rec { + name = "vcal-${version}"; + version = "2.7"; + + src = fetchurl { + url = "http://waynemorrison.com/software/vcal"; + sha256 = "0fknrlad7vb84ngh242xjaq96vkids85ksnxaflk2cr9wcwxfmix"; + }; + + nativeBuildInputs = [ perl ]; # for pod2man + + unpackPhase = ":"; + dontBuild = true; + installPhase = '' + runHook preInstall + + mkdir -p $out/{bin,share/man/man1} + substitute ${src} $out/bin/vcal \ + --replace /usr/bin/perl ${perl}/bin/perl + chmod 0755 $out/bin/* + pod2man -n vcal ${src} > $out/share/man/man1/vcal.1 + + runHook postInstall + ''; + + # There are no tests + doCheck = false; + + meta = with lib; { + description = "Parser for VCalendar and ICalendar files, usable from the command line"; + homepage = http://waynemorrison.com/software/; + license = licenses.unfree; # "These are made publicly available for personal use." + maintainers = with maintainers; [ peterhoeg ]; + }; +} |