nixpkgs/pkgs/by-name/pa/pa_applet/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
933 B
Nix

{ lib, stdenv, fetchFromGitHub, libpulseaudio, pkg-config, gtk3, glibc, autoconf, automake, libnotify, libX11, xf86inputevdev }:
stdenv.mkDerivation {
pname = "pa-applet";
version = "unstable-2012-04-11";
src = fetchFromGitHub {
owner = "fernandotcl";
repo = "pa-applet";
rev = "005f192df9ba6d2e6491f9aac650be42906b135a";
sha256 = "sha256-ihvZFXHgr5YeqMKmVY/GB86segUkQ9BYqJYfE3PTgog=";
};
nativeBuildInputs = [ pkg-config autoconf automake ];
buildInputs = [
gtk3 libpulseaudio glibc libnotify libX11 xf86inputevdev
];
preConfigure = ''
./autogen.sh
'';
# work around a problem related to gtk3 updates
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
postInstall = "";
meta = with lib; {
description = "";
mainProgram = "pa-applet";
license = licenses.bsd2;
maintainers = with maintainers; [ domenkozar ];
platforms = platforms.linux;
};
}