File tree Expand file tree Collapse file tree 3 files changed +39
-17
lines changed Expand file tree Collapse file tree 3 files changed +39
-17
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
description = "VIVE Pro 2 support for linux" ;
3
3
inputs = {
4
- nixpkgs . url = "github:nixos /nixpkgs/1316edc465ed7b2d650ba8be6a1a0b129926bd81 " ;
4
+ nixpkgs . url = "github:dguibert /nixpkgs/dg/fix-replacestdenv-coreutils " ;
5
5
flake-utils . url = "github:numtide/flake-utils" ;
6
6
rust-overlay = {
7
- url = "github:oxalica/rust-overlay/f7d4a3aabee883bfa4d8987a19446ca8f25df81f " ;
7
+ url = "github:oxalica/rust-overlay" ;
8
8
inputs = {
9
9
nixpkgs . follows = "nixpkgs" ;
10
10
flake-utils . follows = "flake-utils" ;
23
23
pkgs = import nixpkgs {
24
24
inherit system ;
25
25
overlays = [
26
- rust-overlay . overlay
26
+ rust-overlay . overlays . default
27
+ ( import ./nix/oldGlibc.nix )
27
28
( final : prev :
28
29
let
29
30
rust = ( final . buildPackages . rustChannelOf {
46
47
} ;
47
48
pkgs-mingw = import nixpkgs {
48
49
inherit system ;
50
+ config . replaceStdenv = import ./nix/oldGlibcStdenv.nix ;
49
51
overlays = [
50
- rust-overlay . overlay
52
+ rust-overlay . overlays . default
51
53
( final : prev : {
52
54
# inherit rustPlatform;
53
55
# https://github.com/NixOS/nixpkgs/issues/149593
Original file line number Diff line number Diff line change
1
+ let nixpkgs-old = builtins . fetchTarball {
2
+ name = "release-18.09" ;
3
+ url = "https://github.com/nixos/nixpkgs/archive/925ff360bc33876fdb6ff967470e34ff375ce65e.tar.gz" ;
4
+ sha256 = "1qbmp6x01ika4kdc7bhqawasnpmhyl857ldz25nmq9fsmqm1vl2s" ;
5
+ } ;
6
+ in
7
+ self : super :
8
+ let
9
+ oldPkgs = import nixpkgs-old { system = super . system ; } ;
10
+ in
11
+ rec {
12
+ glibc = oldPkgs . glibc // { pname = "glibc" ; } ;
13
+ glibcLocales = oldPkgs . glibcLocales ;
14
+ glibcIconv = oldPkgs . glibcIconv ;
15
+ stdenv = super . stdenv // {
16
+ overrides = self2 : super2 : super . stdenv . overrides self2 super2 // {
17
+ glibc = glibc ;
18
+ linuxHeaders = glibc . linuxHeaders ;
19
+ } ;
20
+ } ;
21
+ }
You can’t perform that action at this time.
0 commit comments