-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package request: fastcompmgr #336772
Comments
Hey, I was able to get it to build with this config, I'm a complete newbie so guidance is greatly appreciated. fastcompmgr.nix {
stdenv,
fetchFromGitHub,
xorg,
pkgs,
}:
stdenv.mkDerivation {
pname = "fastcompmgr";
version = "0.3";
src = fetchFromGitHub {
owner = "tycho-kirchner";
repo = "fastcompmgr";
rev = "v0.3";
sha256 = "sha256-UKX0gjhbbXSXfyw/NGA31vTOfgd4kdnxO7lIs+mkgFs=";
};
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [
xorg.libX11
xorg.libXcomposite
xorg.libXdamage
xorg.libXfixes
xorg.libXrender
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp fastcompmgr $out/bin
runHook postInstall
'';
} and in my default.nix: let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
{
fastcompmgr = pkgs.callPackage ./fastcompmgr.nix { };
} |
Hi @camerondugan, you will need to add a Your pull request should have 2 commits:
You should add the package code in Make sure it is also formatted with You might also want to change a few things, so here is a diff: ( {
stdenv,
fetchFromGitHub,
xorg,
pkgs,
}:
- stdenv.mkDerivation {
+ stdenv.mkDerivation (finalAttrs: {
pname = "fastcompmgr";
version = "0.3";
+
src = fetchFromGitHub {
owner = "tycho-kirchner";
repo = "fastcompmgr";
- rev = "v0.3";
+ rev = "refs/tags/v${finalAttrs.version}";
- sha256 = "sha256-UKX0gjhbbXSXfyw/NGA31vTOfgd4kdnxO7lIs+mkgFs=";
+ hash = "sha256-UKX0gjhbbXSXfyw/NGA31vTOfgd4kdnxO7lIs+mkgFs=";
};
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [
xorg.libX11
xorg.libXcomposite
xorg.libXdamage
xorg.libXfixes
xorg.libXrender
];
installPhase = ''
runHook preInstall
+
mkdir -p $out/bin
cp fastcompmgr $out/bin
+
runHook postInstall
'';
+
+ meta = {
+ description = "Fast compositor for X11";
+ homepage = "https://github.com/tycho-kirchner/fastcompmgr";
+ license = lib.licenses.LICENSE_NAME
+ maintainers = with lib.maintainers; [ YOU ];
+ platforms = lib.platforms.linux;
+ };
- }
+ }) |
hey @Sigmanificient, I've followed your advice and opened a pull request: #336909 |
Fixed by #336909 |
Project description
A blazing fast and simple compositor for X11.
Metadata
The text was updated successfully, but these errors were encountered: