diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/lp')
-rw-r--r-- | nixpkgs/pkgs/by-name/lp/lpairs2/package.nix | 42 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/lp/lprint/package.nix | 44 |
2 files changed, 86 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/lp/lpairs2/package.nix b/nixpkgs/pkgs/by-name/lp/lpairs2/package.nix new file mode 100644 index 000000000000..a7ecd6c0f3c9 --- /dev/null +++ b/nixpkgs/pkgs/by-name/lp/lpairs2/package.nix @@ -0,0 +1,42 @@ +{ lib +, SDL2 +, SDL2_image +, SDL2_mixer +, SDL2_ttf +, directoryListingUpdater +, fetchurl +, stdenv +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "lpairs2"; + version = "2.3"; + + src = fetchurl { + url = "mirror://sourceforge/lgames/lpairs2-${finalAttrs.version}.tar.gz"; + hash = "sha256-gw1BNkcztyTuoXRdx5+TBZNJEJNrLCfEUCQ1JzROogA="; + }; + + buildInputs = [ + SDL2 + SDL2_image + SDL2_mixer + SDL2_ttf + ]; + + passthru.updateScript = directoryListingUpdater { + inherit (finalAttrs) pname version; + url = "https://lgames.sourceforge.io/LPairs/"; + extraRegex = "(?!.*-win(32|64)).*"; + }; + + meta = { + homepage = "http://lgames.sourceforge.net/LPairs/"; + description = "Matching the pairs - a typical Memory Game"; + license = with lib.licenses; [ gpl2Plus ]; + mainProgram = "lpairs2"; + maintainers = with lib.maintainers; [ AndersonTorres ]; + platforms = lib.platforms.unix; + broken = stdenv.isDarwin; + }; +}) diff --git a/nixpkgs/pkgs/by-name/lp/lprint/package.nix b/nixpkgs/pkgs/by-name/lp/lprint/package.nix new file mode 100644 index 000000000000..26167ccb0d6c --- /dev/null +++ b/nixpkgs/pkgs/by-name/lp/lprint/package.nix @@ -0,0 +1,44 @@ +{ lib, stdenv, fetchFromGitHub +, pappl +, cups +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "lprint"; + version = "1.3.1"; + + src = fetchFromGitHub { + owner = "michaelrsweet"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-1OOLGQ8S4oRNSJanX/AzJ+g5F+jYnE/+o+ie5ucY22U="; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + pappl + cups + ]; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/lprint --help + ''; + + enableParallelBuilding = true; + + meta = with lib; { + description = "LPrint implements printing for a variety of common label and receipt printers connected via network or USB."; + mainProgram = "lprint"; + homepage = "https://github.com/michaelrsweet/lprint"; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = with maintainers; [ ChlorideCull ]; + }; +} |