Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
373 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
pkgs/development/haskell-modules/patches/atomic-primops-Cabal-1.25.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
diff --git a/Setup.hs b/Setup.hs | ||
index ddf5a02..7ad1f26 100644 | ||
--- a/Setup.hs | ||
+++ b/Setup.hs | ||
@@ -1,4 +1,4 @@ | ||
- | ||
+{-# LANGUAGE CPP #-} | ||
import Control.Monad (when) | ||
import Language.Haskell.TH | ||
import Distribution.Simple (defaultMainWithHooks, simpleUserHooks, UserHooks(postConf), Args) | ||
@@ -6,14 +6,25 @@ import Distribution.Simple.Utils (cabalVersion) | ||
import Distribution.Simple.LocalBuildInfo | ||
import Distribution.Simple.Setup (ConfigFlags) | ||
import Distribution.Version (Version(..)) | ||
+#if MIN_VERSION_Cabal(1,25,0) | ||
+import Distribution.Version (mkVersion) | ||
+#endif | ||
import Distribution.PackageDescription (PackageDescription) | ||
import Debug.Trace | ||
|
||
+#if MIN_VERSION_Cabal(1,25,0) | ||
+versionBranch :: Version -> Version | ||
+versionBranch = id | ||
+#else | ||
+mkVersion :: [Int] -> Version | ||
+mkVersion vs = Version vs [] | ||
+#endif | ||
+ | ||
-- I couldn't figure out a way to do this check from the cabal file, so we drop down | ||
-- here to do it instead: | ||
checkGoodVersion :: IO () | ||
checkGoodVersion = | ||
- if cabalVersion >= Version [1,17,0] [] | ||
+ if cabalVersion >= mkVersion [1,17,0] | ||
then putStrLn (" [Setup.hs] This version of Cabal is ok for profiling: "++show cabalVersion) | ||
else error (" [Setup.hs] This package should not be used in profiling mode with cabal version "++ | ||
show (versionBranch cabalVersion)++" < 1.17.0\n"++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
pkgs/development/libraries/gtk-mac-integration/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig, glib, gtk_doc, gtk }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "gtk-mac-integration-2.0.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "GNOME"; | ||
repo = "gtk-mac-integration"; | ||
rev = "79e708870cdeea24ecdb036c77b4630104ae1776"; | ||
sha256 = "1fbhnvj0rqc3089ypvgnpkp6ad2rr37v5qk38008dgamb9h7f3qs"; | ||
}; | ||
|
||
nativeBuildInputs = [ autoreconfHook pkgconfig gtk_doc ]; | ||
buildInputs = [ glib gtk ]; | ||
|
||
preAutoreconf = '' | ||
gtkdocize | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Provides integration for Gtk+ applications into the Mac desktop"; | ||
|
||
license = licenses.lgpl21; | ||
|
||
homepage = https://wiki.gnome.org/Projects/GTK+/OSX/Integration; | ||
|
||
maintainers = [ maintainers.matthewbauer ]; | ||
platforms = platforms.darwin; | ||
}; | ||
} |
Oops, something went wrong.