···58a re-usable environment in a single-file Python script; then we will create a
59full Python environment for development with this same environment.
6061-Philosphically, this should be familiar to users who are used to a `venv` style
62of development: individual projects create their own Python environments without
63impacting the global environment or each other.
64
···58a re-usable environment in a single-file Python script; then we will create a
59full Python environment for development with this same environment.
6061+Philosophically, this should be familiar to users who are used to a `venv` style
62of development: individual projects create their own Python environments without
63impacting the global environment or each other.
64
···20 config = mkIf cfg.enable {
21 systemd.packages = [ pkgs.throttled ];
22 # The upstream package has this in Install, but that's not enough, see the NixOS manual
23- systemd.services.lenovo_fix.wantedBy = [ "multi-user.target" ];
2425 environment.etc."throttled.conf".source =
26 if cfg.extraConfig != ""
···20 config = mkIf cfg.enable {
21 systemd.packages = [ pkgs.throttled ];
22 # The upstream package has this in Install, but that's not enough, see the NixOS manual
23+ systemd.services.throttled.wantedBy = [ "multi-user.target" ];
2425 environment.etc."throttled.conf".source =
26 if cfg.extraConfig != ""
···1#!/usr/bin/env nix-shell
2#!nix-shell -I nixpkgs=../../../../../ -i bash -p nix wget prefetch-yarn-deps nix-prefetch-github
34-# FIXME should fix itself on the next release -> remove the warning if that's the case
5-echo "WARNING: on the last update, the yarn.lock had to be patched. Please be careful when updating the hashes!"
6-7if [ "$#" -gt 1 ] || [[ "$1" == -* ]]; then
8 echo "Regenerates packaging data for the element packages."
9 echo "Usage: $0 [git release tag]"
···1#!/usr/bin/env nix-shell
2#!nix-shell -I nixpkgs=../../../../../ -i bash -p nix wget prefetch-yarn-deps nix-prefetch-github
30004if [ "$#" -gt 1 ] || [[ "$1" == -* ]]; then
5 echo "Regenerates packaging data for the element packages."
6 echo "Usage: $0 [git release tag]"
···119 # or ${with_sysroot}${native_system_header_dir}
120 # While native build (build == host == target) uses passed headers
121 # path as is:
122- # ${native_system_header_dir}
123 #
124 # Nixpkgs uses flat directory structure for both native and cross
125 # cases. As a result libc headers don't get found for cross case
···119 # or ${with_sysroot}${native_system_header_dir}
120 # While native build (build == host == target) uses passed headers
121 # path as is:
122+ # ${with_build_sysroot}${native_system_header_dir}
123 #
124 # Nixpkgs uses flat directory structure for both native and cross
125 # cases. As a result libc headers don't get found for cross case
···5, nixosTests
6}:
78+let
9+ tag = "0.3.0";
10+in
11stdenv.mkDerivation {
12 pname = "apfs";
13+ version = "${tag}-${kernel.version}";
1415 src = fetchFromGitHub {
16 owner = "linux-apfs";
17 repo = "linux-apfs-rw";
18+ rev = "v${tag}";
19+ sha256 = "sha256-ABFqkiIJuFapFsUIFHfw8+TujePZm7ZX/qHuFO2KdnQ=";
20 };
2122 hardeningDisable = [ "pic" ];
···3233 meta = with lib; {
34 description = "APFS module for linux";
35+ longDescription = ''
36+ The Apple File System (APFS) is the copy-on-write filesystem currently
37+ used on all Apple devices. This module provides a degree of experimental
38+ support on Linux.
39+ If you make use of the write support, expect data corruption.
40+ Read-only support is somewhat more complete, with sealed volumes,
41+ snapshots, and all the missing compression algorithms recently added.
42+ Encryption is still not in the works though.
43+ '';
44 homepage = "https://github.com/linux-apfs/linux-apfs-rw";
45 license = licenses.gpl2Only;
46 platforms = platforms.linux;
+2-7
pkgs/os-specific/linux/busybox/default.nix
···5051stdenv.mkDerivation rec {
52 pname = "busybox";
53- version = "1.35.0";
5455 # Note to whoever is updating busybox: please verify that:
56 # nix-build pkgs/stdenv/linux/make-bootstrap-tools.nix -A test
57 # still builds after the update.
58 src = fetchurl {
59 url = "https://busybox.net/downloads/${pname}-${version}.tar.bz2";
60- sha256 = "sha256-+u6yRMNaNIozT0pZ5EYm7ocPsHtohNaMEK6LwZ+DppQ=";
61 };
6263 hardeningDisable = [ "format" "pie" ]
···74 name = "CVE-2022-28391.patch";
75 url = "https://git.alpinelinux.org/aports/plain/main/busybox/0002-nslookup-sanitize-all-printed-strings-with-printable.patch?id=ed92963eb55bbc8d938097b9ccb3e221a94653f4";
76 sha256 = "sha256-vl1wPbsHtXY9naajjnTicQ7Uj3N+EQ8pRNnrdsiow+w=";
77- })
78- (fetchurl {
79- name = "CVE-2022-30065.patch";
80- url = "https://git.alpinelinux.org/aports/plain/main/busybox/CVE-2022-30065.patch?id=4ffd996b3f8298c7dd424b912c245864c816e354";
81- sha256 = "sha256-+WSYxI6eF8S0tya/S62f9Nc6jVMnHO0q1OyM69GlNTY=";
82 })
83 ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
84
···5051stdenv.mkDerivation rec {
52 pname = "busybox";
53+ version = "1.36.0";
5455 # Note to whoever is updating busybox: please verify that:
56 # nix-build pkgs/stdenv/linux/make-bootstrap-tools.nix -A test
57 # still builds after the update.
58 src = fetchurl {
59 url = "https://busybox.net/downloads/${pname}-${version}.tar.bz2";
60+ sha256 = "sha256-VCdQyK98smMOIBeAtPmfPczusG9QW0eexoJBweavYaU=";
61 };
6263 hardeningDisable = [ "format" "pie" ]
···74 name = "CVE-2022-28391.patch";
75 url = "https://git.alpinelinux.org/aports/plain/main/busybox/0002-nslookup-sanitize-all-printed-strings-with-printable.patch?id=ed92963eb55bbc8d938097b9ccb3e221a94653f4";
76 sha256 = "sha256-vl1wPbsHtXY9naajjnTicQ7Uj3N+EQ8pRNnrdsiow+w=";
0000077 })
78 ] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
79