diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/co')
-rw-r--r-- | nixpkgs/pkgs/by-name/co/cockpit/package.nix | 4 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/co/codeium/package.nix | 10 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/co/coffeegrindsize/package.nix | 44 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/co/construct/package.nix | 39 | ||||
-rw-r--r-- | nixpkgs/pkgs/by-name/co/cosmic-session/package.nix | 5 |
5 files changed, 92 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/by-name/co/cockpit/package.nix b/nixpkgs/pkgs/by-name/co/cockpit/package.nix index 4e979fa2cdad..b5cee2033ddd 100644 --- a/nixpkgs/pkgs/by-name/co/cockpit/package.nix +++ b/nixpkgs/pkgs/by-name/co/cockpit/package.nix @@ -44,13 +44,13 @@ in stdenv.mkDerivation rec { pname = "cockpit"; - version = "310.2"; + version = "311"; src = fetchFromGitHub { owner = "cockpit-project"; repo = "cockpit"; rev = "refs/tags/${version}"; - hash = "sha256-VaH34UT8kXKZbRPTNvL1afeONb3n6vK0UB1UgWeNRWY="; + hash = "sha256-RsOLYvwLu0eNmSZJoCi1dcB2a3JqMbus/gOyL74kCB4="; fetchSubmodules = true; }; diff --git a/nixpkgs/pkgs/by-name/co/codeium/package.nix b/nixpkgs/pkgs/by-name/co/codeium/package.nix index 3c203fdfc2ff..72a08361028b 100644 --- a/nixpkgs/pkgs/by-name/co/codeium/package.nix +++ b/nixpkgs/pkgs/by-name/co/codeium/package.nix @@ -13,10 +13,10 @@ let }.${system} or throwSystem; hash = { - x86_64-linux = "sha256-xAo8XtNXUJXjGu+LMoRj/s0/VFtVwIC6TCc4a1wrzzQ="; - aarch64-linux = "sha256-HOfSb87g6iN5IwmYZ20F91y+a8fbAhTQ+OhHGq7E9ko="; - x86_64-darwin = "sha256-GCP+apn5g/aPZcwHBhKj9Oy90hMpTWRZNLUtOk3yNTc="; - aarch64-darwin = "sha256-EwpO/gOnv/XIxdV1I1dV+i4w5A4avMcv1zPnBLEqoLI="; + x86_64-linux = "sha256-lMlJezLLyN3OMtom/opbihUsrkCuWDGXB8j+o53JMBE="; + aarch64-linux = "sha256-Ccej0Amq/Yo2F2C21rC0E9rzwE4grvyP+q+QajEg1MA="; + x86_64-darwin = "sha256-DFGiYI1hc0GN+A63OWdcCHnwkDQKZ+fhrNozWtlebJs="; + aarch64-darwin = "sha256-iuGmmaCc0YbLUO6G8Uyy/DvNgmfV+TzU4j0VPyACQb4="; }.${system} or throwSystem; bin = "$out/bin/codeium_language_server"; @@ -24,7 +24,7 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "codeium"; - version = "1.6.34"; + version = "1.6.38"; src = fetchurl { name = "${finalAttrs.pname}-${finalAttrs.version}.gz"; url = "https://github.com/Exafunction/codeium/releases/download/language-server-v${finalAttrs.version}/language_server_${plat}.gz"; diff --git a/nixpkgs/pkgs/by-name/co/coffeegrindsize/package.nix b/nixpkgs/pkgs/by-name/co/coffeegrindsize/package.nix new file mode 100644 index 000000000000..ea23de82bbce --- /dev/null +++ b/nixpkgs/pkgs/by-name/co/coffeegrindsize/package.nix @@ -0,0 +1,44 @@ +{ lib, python3, fetchFromGitHub }: + +python3.pkgs.buildPythonApplication { + pname = "coffeegrindsize"; + # no tags in the repo + version = "0-unstable-2021-04-20"; + + format = "other"; + + src = fetchFromGitHub { + owner = "jgagneastro"; + repo = "coffeegrindsize"; + rev = "22661ebd21831dba4cf32bfc6ba59fe3d49f879c"; + hash = "sha256-HlTw0nmr+VZL6EUX9RJzj253fnAred9LNFNgVHqoAoI="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + tkinter + matplotlib + numpy + pandas + pillow + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + echo "#!/usr/bin/env python" > "$out/bin/coffeegrindsize" + cat coffeegrindsize.py >> "$out/bin/coffeegrindsize" + chmod +x "$out/bin/coffeegrindsize" + patchShebangs "$out/bin/coffeegrindsize" + + runHook postInstall + ''; + + meta = with lib; { + description = "Detects the individual coffee grounds in a white-background picture to determine particle size distribution"; + mainProgram = "coffeegrindsize"; + homepage = "https://github.com/jgagneastro/coffeegrindsize"; + license = licenses.mit; + maintainers = with maintainers; [ t4ccer ]; + }; +} diff --git a/nixpkgs/pkgs/by-name/co/construct/package.nix b/nixpkgs/pkgs/by-name/co/construct/package.nix new file mode 100644 index 000000000000..eb2c922b31b4 --- /dev/null +++ b/nixpkgs/pkgs/by-name/co/construct/package.nix @@ -0,0 +1,39 @@ +{ stdenv +, lib +, fetchFromGitHub +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "construct"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "Thomas-de-Bock"; + repo = "construct"; + rev = finalAttrs.version; + hash = "sha256-ENso0y7yEaXzGXzZOnlZ1L7+j/qayJL+f55/NYLz2ew="; + }; + + postPatch = lib.optionalString stdenv.isDarwin '' + substituteInPlace Makefile \ + --replace g++ c++ + ''; + + makeTarget = "main"; + + installPhase = '' + runHook preInstall + install -Dm755 bin/construct -t $out/bin + runHook postInstall + ''; + + meta = with lib; { + description = "Construct is an abstraction over x86 NASM Assembly"; + longDescription = "Construct adds features such as while loops, if statements, scoped macros and function-call syntax to NASM Assembly."; + homepage = "https://github.com/Thomas-de-Bock/construct"; + maintainers = with maintainers; [ rucadi ]; + platforms = platforms.all; + license = licenses.mit; + mainProgram = "construct"; + }; +}) diff --git a/nixpkgs/pkgs/by-name/co/cosmic-session/package.nix b/nixpkgs/pkgs/by-name/co/cosmic-session/package.nix index cebd00aff004..2c84a130bd9c 100644 --- a/nixpkgs/pkgs/by-name/co/cosmic-session/package.nix +++ b/nixpkgs/pkgs/by-name/co/cosmic-session/package.nix @@ -51,11 +51,10 @@ rustPlatform.buildRustPackage rec { "--set" "prefix" (placeholder "out") - "--set" - "xdp_cosmic" - xdg-desktop-portal-cosmic ]; + env.XDP_COSMIC = lib.getExe xdg-desktop-portal-cosmic; + passthru.providedSessions = [ "cosmic" ]; meta = with lib; { |