about summary refs log tree commit diff
path: root/pkgs/by-name/ss/sse2neon/package.nix
diff options
context:
space:
mode:
authorFlorian Brandes2024-04-28 23:40:43 +0200
committerFlorian Brandes2024-05-02 11:12:20 +0200
commit8991c1cfbb48bf31c9419e72d60b12b7a8a35f75 (patch)
treeb3898a4f4b6e04a7790a5235fd223c01fa62a3d7 /pkgs/by-name/ss/sse2neon/package.nix
parent74429e113f4735b8750e16398eccf9541c2c7f10 (diff)
sse2neon: init at 1.7.0
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Diffstat (limited to 'pkgs/by-name/ss/sse2neon/package.nix')
-rw-r--r--pkgs/by-name/ss/sse2neon/package.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/ss/sse2neon/package.nix b/pkgs/by-name/ss/sse2neon/package.nix
new file mode 100644
index 000000000000..f7ef8cca1563
--- /dev/null
+++ b/pkgs/by-name/ss/sse2neon/package.nix
@@ -0,0 +1,41 @@
+{
+  lib,
+  fetchFromGitHub,
+  pkg-config,
+  stdenv,
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "sse2neon";
+  version = "1.7.0";
+
+  src = fetchFromGitHub {
+    owner = "DLTcollab";
+    repo = "sse2neon";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-riFFGIA0H7e5StYSjO0/JDrduzfwS+lOASzk5BRUyo4=";
+  };
+
+  postPatch = ''
+    # remove warning about gcc < 10
+    substituteInPlace sse2neon.h --replace-fail "#warning \"GCC versions" "// "
+  '';
+
+  nativeBuildInputs = [ pkg-config ];
+
+  dontInstall = true;
+  # use postBuild instead of installPhase, because the build
+  # in itself doesn't produce any ($out) output
+  postBuild = ''
+    mkdir -p $out/lib
+    install -m444 sse2neon.h $out/lib/
+  '';
+
+  meta = {
+    description = "Mono library that provides a GDI+-compatible API on non-Windows operating systems";
+    homepage = "https://www.mono-project.com/docs/gui/libgdiplus/";
+    platforms = lib.platforms.unix;
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.gador ];
+  };
+})