Created
May 17, 2022 14:06
-
-
Save adisbladis/022fe7958a8a5b2a954947e764c53b3e to your computer and use it in GitHub Desktop.
activate-linux.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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