mirror of
https://github.com/hyprwm/hyprland-qt-support.git
synced 2025-05-12 21:20:35 +01:00
flake: add hyprlang flake + overlay
This commit is contained in:
parent
b4e829d8bf
commit
16c35452e4
5 changed files with 70 additions and 13 deletions
50
flake.lock
50
flake.lock
|
@ -1,5 +1,54 @@
|
|||
{
|
||||
"nodes": {
|
||||
"hyprlang": {
|
||||
"inputs": {
|
||||
"hyprutils": "hyprutils",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"systems"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1735393019,
|
||||
"narHash": "sha256-NPpqA8rtmDLsEmZOmz+qR67zsB6Y503Jnv+nSFLKJZ8=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprlang",
|
||||
"rev": "55608efdaa387af7bfdc0eddb404c409958efa43",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprlang",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hyprutils": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"hyprlang",
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"hyprlang",
|
||||
"systems"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1734796073,
|
||||
"narHash": "sha256-TnuKsa8OHrSJEmHm3TLGOWbPNA1gRjmZLsRzKrCqOsg=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprutils",
|
||||
"rev": "c3331116ebd0b71df5ae8c6efe9a7f94148b03bf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hyprwm",
|
||||
"repo": "hyprutils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1736012469,
|
||||
|
@ -18,6 +67,7 @@
|
|||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"hyprlang": "hyprlang",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"systems": "systems"
|
||||
}
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
systems.url = "github:nix-systems/default-linux";
|
||||
|
||||
hyprlang = {
|
||||
url = "github:hyprwm/hyprlang";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.systems.follows = "systems";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
|
|
@ -2,16 +2,14 @@
|
|||
lib,
|
||||
nix-gitignore,
|
||||
stdenv,
|
||||
|
||||
cmake,
|
||||
ninja,
|
||||
qt6,
|
||||
pkg-config,
|
||||
hyprlang,
|
||||
version ? "0",
|
||||
}: let
|
||||
inherit (lib.strings) makeBinPath;
|
||||
in stdenv.mkDerivation {
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "hyprland-qt-support";
|
||||
inherit version;
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ in {
|
|||
default = self.overlays.hyprland-qt-support;
|
||||
|
||||
hyprland-qt-support = lib.composeManyExtensions [
|
||||
inputs.hyprlang.overlays.default
|
||||
(final: prev: {
|
||||
hyprland-qt-support = final.callPackage ./. {
|
||||
version = "${version}+date=${date}_${self.shortRev or "dirty"}";
|
||||
|
|
|
@ -2,13 +2,15 @@
|
|||
pkgs ? import <nixpkgs> {},
|
||||
hyprland-qt-support ? pkgs.callPackage ./default.nix {},
|
||||
...
|
||||
}: pkgs.mkShell {
|
||||
}:
|
||||
pkgs.mkShell {
|
||||
inputsFrom = [hyprland-qt-support];
|
||||
nativeBuildInputs = [pkgs.clang-tools pkgs.parallel];
|
||||
|
||||
shellHook = let
|
||||
inherit (pkgs.lib.strings) concatMapStringsSep;
|
||||
qtLibPath = f: concatMapStringsSep ":" f (with pkgs.qt6; [
|
||||
qtLibPath = f:
|
||||
concatMapStringsSep ":" f (with pkgs.qt6; [
|
||||
qtbase
|
||||
qtdeclarative
|
||||
qtwayland
|
||||
|
|
Loading…
Reference in a new issue