Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

activate-linux: unstable-2022-05-22 -> 1.1.0

+32 -8
+32 -8
pkgs/applications/misc/activate-linux/default.nix
··· 4 4 , pkg-config 5 5 , xorg 6 6 , cairo 7 + , wayland 8 + , wayland-protocols 9 + , wayland-scanner 10 + , libconfig 7 11 }: 8 12 9 - stdenv.mkDerivation rec { 13 + stdenv.mkDerivation (finalAttrs: { 10 14 pname = "activate-linux"; 11 - version = "unstable-2022-05-22"; 15 + version = "1.1.0"; 12 16 13 17 src = fetchFromGitHub { 14 18 owner = "MrGlockenspiel"; 15 - repo = pname; 16 - rev = "18a6dc9771c568c557569ef680386d5d67f25e96"; 17 - sha256 = "wYoCyWZqu/jgqAuNYdNr2bjpz4pFRTnAF7qF4BRs9GE="; 19 + repo = "activate-linux"; 20 + rev = "v${finalAttrs.version}"; 21 + hash = "sha256-6XnoAoZwAs2hKToWlDqkaGqucmV1VMkEc4QO0G0xmrg="; 18 22 }; 19 23 20 24 makeFlags = [ "PREFIX=$(out)" ]; 21 25 22 26 nativeBuildInputs = [ 23 27 pkg-config 28 + wayland-scanner 24 29 ]; 25 30 26 31 buildInputs = [ 32 + cairo 27 33 xorg.libX11 28 34 xorg.libXext 29 35 xorg.libXfixes 36 + xorg.libXi 30 37 xorg.libXinerama 31 - cairo 38 + xorg.libXrandr 39 + xorg.libXt 40 + xorg.xorgproto 41 + wayland 42 + wayland-protocols 43 + libconfig 32 44 ]; 33 45 46 + installPhase = '' 47 + runHook preInstall 48 + 49 + mkdir -p $out/bin 50 + mkdir -p $out/share/man/man1 51 + 52 + cp activate-linux $out/bin 53 + cp activate-linux.1 $out/share/man/man1 54 + 55 + runHook postInstall 56 + ''; 34 57 35 58 meta = with lib; { 36 59 description = "The \"Activate Windows\" watermark ported to Linux"; 37 60 homepage = "https://github.com/MrGlockenspiel/activate-linux"; 38 61 license = licenses.gpl3; 39 - maintainers = with maintainers; [ alexnortung ]; 62 + maintainers = with maintainers; [ alexnortung donovanglover ]; 40 63 platforms = platforms.linux; 64 + mainProgram = "activate-linux"; 41 65 }; 42 - } 66 + })