Skip to content

Instantly share code, notes, and snippets.

@adisbladis
Created May 17, 2022 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adisbladis/022fe7958a8a5b2a954947e764c53b3e to your computer and use it in GitHub Desktop.
Save adisbladis/022fe7958a8a5b2a954947e764c53b3e to your computer and use it in GitHub Desktop.
activate-linux.nix
{ stdenv
, fetchFromGitHub
, fetchpatch
, pkg-config
, cairo
, xorg
, clang
, lib
}:
stdenv.mkDerivation rec {
pname = "activate-linux";
version = "0.0.1";
src = fetchFromGitHub {
owner = "MrGlockenspiel";
repo = pname;
rev = "v${version}";
sha256 = "Mrtm8wOmoYEo7Pmcsef8r6kP3VI/MQNq8crvYQCqn04=";
};
patches = [
(fetchpatch {
url = "https://github.com/MrGlockenspiel/activate-linux/commit/8ff0df722f6af0f4c5fbbeaa5f88374539c384aa.patch";
sha256 = "sha256-NFxN0jeAF9gbqT/bJ7PxH037pXJZXpmmzfvuEtV3cpE=";
})
];
makeFlags = [ "PREFIX=$(out)/" ];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
cairo
xorg.libXi
xorg.libX11
xorg.libXt
xorg.libXfixes
xorg.libXinerama
];
meta = with lib; {
description = "The \"Activate Windows\" watermark ported to Linux";
homepage = "https://github.com/MrGlockenspiel/activate-linux";
license = lib.licenses.unfreeRedistributable; # based license ( )
maintainers = with maintainers; [ alexnortung ];
platforms = platforms.linux;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment