Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
331b63ca
Commit
331b63ca
authored
1 year ago
by
🥺
Committed by
🥺
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
upstream nix changes, make rocksdb git work
Signed-off-by:
strawberry
<
strawberry@puppygock.gay
>
parent
35ebc459
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
flake.lock
+9
-9
9 additions, 9 deletions
flake.lock
flake.nix
+12
-22
12 additions, 22 deletions
flake.nix
with
21 additions
and
31 deletions
flake.lock
+
9
−
9
View file @
331b63ca
...
@@ -73,11 +73,11 @@
...
@@ -73,11 +73,11 @@
"rust-analyzer-src": "rust-analyzer-src"
"rust-analyzer-src": "rust-analyzer-src"
},
},
"locked": {
"locked": {
"lastModified": 1706
16383
3,
"lastModified": 1706
25015
3,
"narHash": "sha256-
Vw+jTVtKceT+ScaIn7tHy8JjRZZpmg2fAdoInLAsW/M
=",
"narHash": "sha256-
OwEZ4UMLuz9fpH9ZbN7SSQvtDvUoj3RV32icp+8SIIc
=",
"owner": "nix-community",
"owner": "nix-community",
"repo": "fenix",
"repo": "fenix",
"rev": "
043f63f55e9c9b808852ea82edee1f2a1af37e91
",
"rev": "
6d85102211fa954ece0a8a898ed91b4866b62ce7
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
...
@@ -184,11 +184,11 @@
...
@@ -184,11 +184,11 @@
},
},
"nixpkgs_2": {
"nixpkgs_2": {
"locked": {
"locked": {
"lastModified": 170
5856552
,
"lastModified": 170
6191920
,
"narHash": "sha256-
JXfnuEf5Yd6bhMs/uvM67/joxYKoysyE3M2k6T3eWbg
=",
"narHash": "sha256-
eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE
=",
"owner": "NixOS",
"owner": "NixOS",
"repo": "nixpkgs",
"repo": "nixpkgs",
"rev": "
612f97239e2cc474c13c9dafa0df378058c5ad8d
",
"rev": "
ae5c332cbb5827f6b1f02572496b141021de335f
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
...
@@ -211,11 +211,11 @@
...
@@ -211,11 +211,11 @@
"rust-analyzer-src": {
"rust-analyzer-src": {
"flake": false,
"flake": false,
"locked": {
"locked": {
"lastModified": 17061
06882
,
"lastModified": 17061
58176
,
"narHash": "sha256-
31DivWu0cC50gR2CgbGtLCf77nuiw4kdiI7B8ioqzLw
=",
"narHash": "sha256-
qPiPcLBXU05j+Z2hCrtClJQfmrfSN/bUq2aODiCzde0
=",
"owner": "rust-lang",
"owner": "rust-lang",
"repo": "rust-analyzer",
"repo": "rust-analyzer",
"rev": "
0d52934d19d7addcafcfda92a1d547b51556beec
",
"rev": "
38f7a3498e0d5f0113294bbdc08f867cd527e65f
",
"type": "github"
"type": "github"
},
},
"original": {
"original": {
...
...
This diff is collapsed.
Click to expand it.
flake.nix
+
12
−
22
View file @
331b63ca
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
url
=
"github:nix-community/fenix"
;
url
=
"github:nix-community/fenix"
;
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
inputs
.
nixpkgs
.
follows
=
"nixpkgs"
;
};
};
crane
=
{
crane
=
{
# TODO: Switch back to upstream after [this issue][0] is fixed
# TODO: Switch back to upstream after [this issue][0] is fixed
#
#
...
@@ -30,27 +29,15 @@
...
@@ -30,27 +29,15 @@
,
...
,
...
}:
flake-utils
.
lib
.
eachDefaultSystem
(
system
:
}:
flake-utils
.
lib
.
eachDefaultSystem
(
system
:
let
let
pkgs
=
import
nixpkgs
{
rocksdb
'
=
pkgs
:
pkgs
.
rocksdb
.
overrideAttrs
(
old
:
inherit
system
;
overlays
=
[
(
final
:
prev
:
{
rocksdb
=
prev
.
rocksdb
.
overrideAttrs
(
old
:
let
version
=
"8.10.0"
;
in
{
{
inherit
version
;
src
=
pkgs
.
fetchFromGitHub
{
src
=
pkgs
.
fetchFromGitHub
{
owner
=
"facebook"
;
owner
=
"facebook"
;
repo
=
"rocksdb"
;
repo
=
"rocksdb"
;
rev
=
"v
${
version
}
"
;
rev
=
"v
8.10.0
"
;
hash
=
"sha256-KGsYDBc1fz/90YYNGwlZ0LUKXYsP1zyhP29TnRQwgjQ="
;
hash
=
"sha256-KGsYDBc1fz/90YYNGwlZ0LUKXYsP1zyhP29TnRQwgjQ="
;
};
};
});
});
})
];
};
pkgsHost
=
nixpkgs
.
legacyPackages
.
${
system
};
pkgsHost
=
nixpkgs
.
legacyPackages
.
${
system
};
...
@@ -76,8 +63,8 @@
...
@@ -76,8 +63,8 @@
];
];
env
=
pkgs
:
{
env
=
pkgs
:
{
ROCKSDB_INCLUDE_DIR
=
"
${
pkgs
.
rocksdb
}
/include"
;
ROCKSDB_INCLUDE_DIR
=
"
${
rocksdb
'
}
/include"
;
ROCKSDB_LIB_DIR
=
"
${
pkgs
.
rocksdb
}
/lib"
;
ROCKSDB_LIB_DIR
=
"
${
rocksdb
'
}
/lib"
;
}
}
//
pkgs
.
lib
.
optionalAttrs
pkgs
.
stdenv
.
hostPlatform
.
isStatic
{
//
pkgs
.
lib
.
optionalAttrs
pkgs
.
stdenv
.
hostPlatform
.
isStatic
{
ROCKSDB_STATIC
=
""
;
ROCKSDB_STATIC
=
""
;
...
@@ -93,7 +80,7 @@
...
@@ -93,7 +80,7 @@
stdenv
.
hostPlatform
.
isStatic
stdenv
.
hostPlatform
.
isStatic
[
"-C"
"relocation-model=static"
]
[
"-C"
"relocation-model=static"
]
++
lib
.
optionals
++
lib
.
optionals
(
stdenv
.
buildPlatform
.
config
!=
pkgs
.
stdenv
.
hostPlatform
.
config
)
(
stdenv
.
buildPlatform
.
config
!=
stdenv
.
hostPlatform
.
config
)
[
"-l"
"c"
]
[
"-l"
"c"
]
++
lib
.
optionals
++
lib
.
optionals
# This check has to match the one [here][0]. We only need to set
# This check has to match the one [here][0]. We only need to set
...
@@ -102,10 +89,13 @@
...
@@ -102,10 +89,13 @@
#
#
# [0]: https://github.com/NixOS/nixpkgs/blob/612f97239e2cc474c13c9dafa0df378058c5ad8d/pkgs/build-support/rust/lib/default.nix#L36-L39
# [0]: https://github.com/NixOS/nixpkgs/blob/612f97239e2cc474c13c9dafa0df378058c5ad8d/pkgs/build-support/rust/lib/default.nix#L36-L39
(
(
pkgs
.
stdenv
.
hostPlatform
.
isAarch64
# Nixpkgs doesn't check for x86_64 here but we do, because I
&&
pkgs
.
stdenv
.
hostPlatform
.
isStatic
# observed a failure building statically for x86_64 without
&&
!
pkgs
.
stdenv
.
isDarwin
# including it here. Linkers are weird.
&&
!
pkgs
.
stdenv
.
cc
.
bintools
.
isLLVM
(
stdenv
.
hostPlatform
.
isAarch64
||
stdenv
.
hostPlatform
.
isx86_64
)
&&
stdenv
.
hostPlatform
.
isStatic
&&
!
stdenv
.
isDarwin
&&
!
stdenv
.
cc
.
bintools
.
isLLVM
)
)
[
[
"-l"
"-l"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment