git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #40143 from yrashk/sit-0.3.2-aarch64
02fff46xeji
pkgs/applications/version-management/sit/aarch64-eexist.patchnew file+17
@@ -0,0 +1,17 @@
1+diff --git a/sit-core/src/repository.rs b/sit-core/src/repository.rs
2+index ebd357d..074dcc9 100644
3+--- a/sit-core/src/repository.rs
4++++ b/sit-core/src/repository.rs
5+@@ -305,6 +305,12 @@ impl Repository {
6+ let id: String = name.into();
7+ let mut path = self.items_path.clone();
8+ path.push(&id);
9++ #[cfg(all(debug_assertions, target_arch = "aarch64"))] {
10++ use std::io;
11++ if path.is_dir() {
12++ return Err(io::Error::from_raw_os_error(17).into()); // 17 is EEXIST
13++ }
14++ }
15+ fs::create_dir(path)?;
16+ let id = OsString::from(id);
17+ Ok(Item {
pkgs/applications/version-management/sit/default.nix+2
@@ -15,6 +15,8 @@ rustPlatform.buildRustPackage rec {
15
15
16 cargoSha256 = "102haqix13nwcncng1s8qkw68spn6fhh3vysk2nbahw6f78zczqg";
16 cargoSha256 = "102haqix13nwcncng1s8qkw68spn6fhh3vysk2nbahw6f78zczqg";
17
17
18+ patches = [ ./aarch64-eexist.patch ];
19+
18 meta = with stdenv.lib; {
20 meta = with stdenv.lib; {
19 description = "Serverless Information Tracker";
21 description = "Serverless Information Tracker";
20 homepage = https://sit.sh/;
22 homepage = https://sit.sh/;