nixpkgs/pkgs/by-name/at/atinout/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

32 lines
904 B
Nix

{ lib, stdenv, fetchgit, ronn, mount }:
stdenv.mkDerivation rec {
pname = "atinout";
version = "0.9.2-alpha";
env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0";
LANG = if stdenv.hostPlatform.isDarwin then "en_US.UTF-8" else "C.UTF-8";
nativeBuildInputs = [ ronn mount ];
src = fetchgit {
url = "git://git.code.sf.net/p/atinout/code";
rev = "4976a6cb5237373b7e23cd02d7cd5517f306e3f6";
sha256 = "0bninv2bklz7ly140cxx8iyaqjlq809jjx6xqpimn34ghwsaxbpv";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''
make PREFIX=$out install
'';
meta = with lib; {
homepage = "https://atinout.sourceforge.net";
description = "Tool for talking to modems";
platforms = platforms.unix;
license = licenses.gpl3;
maintainers = with maintainers; [ bendlas ];
mainProgram = "atinout";
};
}