summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-05-30 12:46:04 +0200
committerGitHub <noreply@github.com>2022-05-30 12:46:04 +0200
commit8407184d50a4cb0dbed5fba76d26451ce32fe69b (patch)
tree4ca6beca0eab9b433919baddff3372d51a4fe348
parent563e5c46f545269cc85e0d324b9abadef9df8419 (diff)
parent7d4af5de4090988370a5c027b463608f187511af (diff)
downloadnixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.tar
nixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.tar.gz
nixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.tar.bz2
nixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.tar.lz
nixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.tar.xz
nixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.tar.zst
nixpkgs-8407184d50a4cb0dbed5fba76d26451ce32fe69b.zip
Merge pull request #173782 from ranfdev/blueprint
blueprint-compiler: init at 0.1.0
-rw-r--r--pkgs/development/compilers/blueprint/default.nix51
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/compilers/blueprint/default.nix b/pkgs/development/compilers/blueprint/default.nix
new file mode 100644
index 00000000000..9aa1893effe
--- /dev/null
+++ b/pkgs/development/compilers/blueprint/default.nix
@@ -0,0 +1,51 @@
+{ python3
+, stdenv
+, fetchFromGitLab
+, gobject-introspection
+, lib
+, meson
+, ninja
+}:
+
+stdenv.mkDerivation rec {
+  pname = "blueprint-compiler";
+  version = "unstable-2022-05-27";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "jwestman";
+    repo = pname;
+    rev = "cebd9ecadc53790cd547392899589dd5de0ac552";
+    sha256 = "sha256-mNR0ooJSRBIXy2E4avXYEdO1aSST+j41TsVg8+kitwo=";
+  };
+
+  # Requires pythonfuzz, which I've found difficult to package
+  doCheck = false;
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    python3.pkgs.wrapPython
+  ];
+
+  buildInputs = [
+    python3
+  ];
+
+  propagatedBuildInputs = [
+    # So that the compiler can find GIR and .ui files
+    gobject-introspection
+  ];
+
+  postFixup = ''
+    wrapPythonPrograms
+  '';
+
+  meta = with lib; {
+    description = "A markup language for GTK user interface files";
+    homepage = "https://gitlab.gnome.org/jwestman/blueprint-compiler";
+    license = licenses.lgpl3Plus;
+    maintainers = [ maintainers.ranfdev ];
+    platforms = platforms.all;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index daec3fc67ba..7206de9c3dd 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -12334,6 +12334,8 @@ with pkgs;
 
   binaryen = callPackage ../development/compilers/binaryen { };
 
+  blueprint-compiler = callPackage ../development/compilers/blueprint { };
+
   bluespec = callPackage ../development/compilers/bluespec {
     gmp-static = gmp.override { withStatic = true; };
     tex = texlive.combined.scheme-full;