update tooling
This commit is contained in:
parent
144be992b1
commit
582ed32c9e
4 changed files with 35 additions and 51 deletions
|
@ -2,11 +2,11 @@
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711370797,
|
"lastModified": 1711593151,
|
||||||
"narHash": "sha256-2xu0jVSjuKhN97dqc4bVtvEH52Rwh6+uyI1XCnzoUyI=",
|
"narHash": "sha256-/9NCoPI7fqJIN8viONsY9X0fAeq8jc3GslFCO0ky6TQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c726225724e681b3626acc941c6f95d2b0602087",
|
"rev": "bb2b73df7bcfbd2dd55ff39b944d70547d53c267",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
in pkgs.alejandra);
|
in pkgs.alejandra);
|
||||||
packages = forAllSystems (system: let
|
packages = forAllSystems (system: let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
swaymux-pkg = (pkgs.qt6Packages.callPackage ./nix/default.nix {});
|
swaymux-pkg = (pkgs.qt6Packages.callPackage ./nix/package.nix {});
|
||||||
in {
|
in {
|
||||||
swaymux = swaymux-pkg;
|
swaymux = swaymux-pkg;
|
||||||
default = swaymux-pkg;
|
default = swaymux-pkg;
|
||||||
|
|
|
@ -1,47 +0,0 @@
|
||||||
{
|
|
||||||
lib,
|
|
||||||
nlohmann_json,
|
|
||||||
cmake,
|
|
||||||
qt6,
|
|
||||||
qtbase,
|
|
||||||
qtwayland,
|
|
||||||
stdenv,
|
|
||||||
wrapQtAppsHook
|
|
||||||
}:
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "swaymux";
|
|
||||||
version = "0.1";
|
|
||||||
|
|
||||||
src = lib.cleanSource ../.;
|
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
cmake .
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
make -j
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
mv swaymux $out/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
# dontWrapQtApps = true;
|
|
||||||
buildInputs = [ qt6.qtwayland cmake nlohmann_json qtbase];
|
|
||||||
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
|
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A program to quickly navigate sway";
|
|
||||||
longDescription = ''
|
|
||||||
Swaymux allows the user to quickly navigate and administrate outputs, workspaces and containers in a tmux-style approach.
|
|
||||||
'';
|
|
||||||
homepage = "https://git.grimmauld.de/Grimmauld/swaymux";
|
|
||||||
changelog = "https://git.grimmauld.de/Grimmauld/swaymux/commits/branch/main";
|
|
||||||
license = lib.licenses.bsd3;
|
|
||||||
maintainers = [ maintainers.grimmauld ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
}
|
|
31
nix/package.nix
Normal file
31
nix/package.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ cmake
|
||||||
|
, fetchFromGitea
|
||||||
|
, lib
|
||||||
|
, nlohmann_json
|
||||||
|
, qt6
|
||||||
|
, stdenv
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
version = "1.0";
|
||||||
|
pname = "swaymux";
|
||||||
|
|
||||||
|
src = lib.cleanSource ../.;
|
||||||
|
|
||||||
|
buildInputs = [ qt6.qtwayland nlohmann_json qt6.qtbase];
|
||||||
|
nativeBuildInputs = [ cmake qt6.wrapQtAppsHook ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
changelog = "https://git.grimmauld.de/Grimmauld/swaymux/commits/branch/main";
|
||||||
|
description = "A program to quickly navigate sway";
|
||||||
|
homepage = "https://git.grimmauld.de/Grimmauld/swaymux";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
longDescription = ''
|
||||||
|
Swaymux allows the user to quickly navigate and administrate outputs, workspaces and containers in a tmux-style approach.
|
||||||
|
'';
|
||||||
|
mainProgram = "swaymux";
|
||||||
|
maintainers = with maintainers; [ grimmauld ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue