diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/no')
-rw-r--r-- | nixpkgs/pkgs/by-name/no/node-hp-scan-to/package.nix | 76 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/no/nom/package.nix | 4 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/no/nomacs/package.nix | 10 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/no/normaliz/package.nix | 43 |
4 files changed, 126 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/by-name/no/node-hp-scan-to/package.nix b/nixpkgs/pkgs/by-name/no/node-hp-scan-to/package.nix new file mode 100644 index 000000000000..b6a5eced5f46 --- /dev/null +++ b/nixpkgs/pkgs/by-name/no/node-hp-scan-to/package.nix @@ -0,0 +1,76 @@ +{ lib +, stdenv +, fetchFromGitHub +, fetchYarnDeps +, makeWrapper +, nodejs +, prefetch-yarn-deps +, yarn +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "node-hp-scan-to"; + version = "1.4.2"; + + src = fetchFromGitHub { + owner = "manuc66"; + repo = "node-hp-scan-to"; + rev = "v${finalAttrs.version}"; + hash = "sha256-/aoR2ccDYTkdmcj4k2zf8VJydQufZ2ucqyZ1OH9jRt0="; + }; + + offlineCache = fetchYarnDeps { + yarnLock = "${finalAttrs.src}/yarn.lock"; + hash = "sha256-Mhlw/3js35TOVDADsPScE9kfv9rmF+u1LzDmKkzunM0="; + }; + + nativeBuildInputs = [ + makeWrapper + nodejs + prefetch-yarn-deps + yarn + ]; + + configurePhase = '' + runHook preConfigure + + export HOME=$(mktemp -d) + yarn config --offline set yarn-offline-mirror $offlineCache + fixup-yarn-lock yarn.lock + yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install + patchShebangs node_modules + + runHook postConfigure + ''; + + buildPhase = '' + runHook preBuild + + yarn --offline build + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + yarn --offline --production install + + mkdir -p "$out/lib/node_modules/node-hp-scan-to" + cp -r dist node_modules package.json "$out/lib/node_modules/node-hp-scan-to" + + makeWrapper "${nodejs}/bin/node" "$out/bin/node-hp-scan-to" \ + --add-flags "$out/lib/node_modules/node-hp-scan-to/dist/index.js" + + runHook postInstall + ''; + + meta = { + changelog = "https://github.com/manuc66/node-hp-scan-to/releases/tag/${finalAttrs.src.rev}"; + description = "Allow to send scan from device to computer for some HP All-in-One Printers"; + homepage = "https://github.com/manuc66/node-hp-scan-to"; + license = lib.licenses.mit; + mainProgram = "node-hp-scan-to"; + maintainers = with lib.maintainers; [ jonas-w ]; + }; +}) diff --git a/nixpkgs/pkgs/by-name/no/nom/package.nix b/nixpkgs/pkgs/by-name/no/nom/package.nix index 2dce6de227a1..192a231f11d5 100644 --- a/nixpkgs/pkgs/by-name/no/nom/package.nix +++ b/nixpkgs/pkgs/by-name/no/nom/package.nix @@ -4,13 +4,13 @@ }: buildGoModule rec { pname = "nom"; - version = "2.1.3"; + version = "2.1.4"; src = fetchFromGitHub { owner = "guyfedwards"; repo = "nom"; rev = "v${version}"; - hash = "sha256-PBhwIyGzWbXRTmp+IvFPqae4cbb6l6nIYcFheYkHlFI="; + hash = "sha256-W0vfYAEQYixbnOQhA59sj2uSAcbqoS/OMiB3TfXsv/Y="; }; vendorHash = "sha256-fP6yxfIQoVaBC9hYcrCyo3YP3ntEVDbDTwKMO9TdyDI="; diff --git a/nixpkgs/pkgs/by-name/no/nomacs/package.nix b/nixpkgs/pkgs/by-name/no/nomacs/package.nix index 5f4ee57ed94f..138e4ead7fcd 100644 --- a/nixpkgs/pkgs/by-name/no/nomacs/package.nix +++ b/nixpkgs/pkgs/by-name/no/nomacs/package.nix @@ -22,10 +22,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-jHr7J0X1v2n/ZK0y3b/XPDISk7e08VWS6nicJU4fKKY="; }; - # Because some unknown reason split outputs is breaking on Darwin - outputs = if stdenv.isDarwin - then [ "out" ] - else [ "out" "man" ]; + outputs = [ "out" ] + # man pages are not installed on Darwin, see cmake/{Mac,Unix}BuildTarget.cmake + ++ lib.optionals (!stdenv.isDarwin) [ "man" ]; sourceRoot = "${finalAttrs.src.name}/ImageLounge"; @@ -58,7 +57,8 @@ stdenv.mkDerivation (finalAttrs: { ]; postInstall = lib.optionalString stdenv.isDarwin '' - mkdir -p $out/lib + mkdir -p $out/{Applications,lib} + mv $out/nomacs.app $out/Applications/nomacs.app mv $out/libnomacsCore.dylib $out/lib/libnomacsCore.dylib ''; diff --git a/nixpkgs/pkgs/by-name/no/normaliz/package.nix b/nixpkgs/pkgs/by-name/no/normaliz/package.nix new file mode 100644 index 000000000000..be30696ab8fd --- /dev/null +++ b/nixpkgs/pkgs/by-name/no/normaliz/package.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, gmpxx +, flint +, arb +, nauty +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "normaliz"; + version = "3.10.1"; + + src = fetchFromGitHub { + owner = "normaliz"; + repo = "normaliz"; + rev = "v${finalAttrs.version}"; + hash = "sha256-nnSauTlS5R6wbaoGxR6HFacFYm5r4DAhoP9IVe4ajdc="; + }; + + buildInputs = [ + gmpxx + flint + arb + nauty + ]; + + outputs = [ "out" "lib" "dev" ]; + + nativeBuildInputs = [ + autoreconfHook + ]; + + meta = with lib; { + homepage = "https://www.normaliz.uni-osnabrueck.de/"; + description = "An open source tool for computations in affine monoids, vector configurations, lattice polytopes, and rational cones"; + maintainers = with maintainers; [ yannickulrich ]; + platforms = with platforms; unix ++ windows; + license = licenses.gpl3Plus; + mainProgram = "normaliz"; + }; +}) |