adding a flake for RoundedSBE

This commit is contained in:
Chris Cochrun 2023-01-20 05:33:59 -06:00
parent 7ddd241def
commit ac3cee2af9
3 changed files with 143 additions and 0 deletions

79
RoundedSBE/default.nix Normal file
View file

@ -0,0 +1,79 @@
{
stdenv,
lib,
fetchFromGitHub,
qtbase,
qtx11extras,
qttools,
kglobalaccel,
kinit,
kwin,
kdecoration,
kcrash,
kio,
knotifications,
kguiaddons,
kcoreaddons,
# systemsettings,
cmake,
qt5base,
extra-cmake-modules,
wrapQtAppsHook,
libepoxy,
kdelibs4support,
libXdmcp
}:
stdenv.mkDerivation rec {
pname = "RoundedSBE";
version = "0.1.0";
src = fetchFromGitHub {
owner = "a-parhom";
repo = "RoundedSBE";
rev = "ba60e3c84ed0bab18d369435e7d8cdd1e33fd6b2";
sha256 = "sha256-0000000000000000000000000000000000000000000=";
};
# dontWrapQtApps = true;
buildInputs = [
qtbase
qtx11extras
qttools
kglobalaccel
kdelibs4support
kcrash
kinit
kwin
kdecoration
kio
knotifications
kguiaddons
kcoreaddons
# systemsettings
libepoxy
libXdmcp
];
nativeBuildInputs = [
cmake
extra-cmake-modules
wrapQtAppsHook
];
postConfigure = ''
substituteInPlace cmake_install.cmake \
--replace "${kdelibs4support}" "$out"
'';
meta = with lib; {
name = "RoundedSBE";
description = "Round corners and outline effect for Sierra Breeze Enhanced.";
homepage = "https://github.com/a-parhom/RoundedSBE";
license = licenses.gpl3;
maintainers = [ "chriscochrun" ];
platforms = platforms.all;
};
}

43
RoundedSBE/flake.lock Normal file
View file

@ -0,0 +1,43 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1667395993,
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1671359686,
"narHash": "sha256-3MpC6yZo+Xn9cPordGz2/ii6IJpP2n8LE8e/ebUXLrs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "04f574a1c0fde90b51bf68198e2297ca4e7cccf4",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

21
RoundedSBE/flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "Rounded Sierra Breeze Enhanced";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
src = ./.;
in
{
devShell = import ./shell.nix { inherit pkgs; };
defaultPackage = pkgs.libsForQt5.callPackage ./default.nix {};
}
);
}