02-15-25 update

This commit is contained in:
2025-02-15 20:31:57 -05:00
parent 95c4f2bb0c
commit 7326ab40f0
13 changed files with 77 additions and 48 deletions

2272
overlay/pkgs/slash/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "slash";
version = "v0.5.0_662cb43";
src = pkgs.fetchFromGitHub {
owner = "pagedMov";
repo = "slash";
rev = "662cb43e499d179579d99bf358073516605230ea";
hash = "sha256-4DKAhRkd1XeDNyYH8yL1TnbTc6hZnp2+UV7UYeDRkpE=";
};
doCheck = false; # TODO: Find a way to make tests work
cargoLock.lockFile = ./Cargo.lock;
passthru = {
shellPath = "/bin/slash";
};
}

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
export GIT_SSH_COMMAND="ssh -F /dev/null"
curl -O https://raw.githubusercontent.com/pagedMov/slash/refs/heads/master/Cargo.lock
NEW_SRC=$(fetchfromgh pagedMov/slash)
REV_SHORT=$(git ls-remote git@github.com:pagedMov/slash.git HEAD | awk '{print substr($1, 1, 7)}')
CUR_TAG=$(git ls-remote --tags git@github.com:pagedMov/slash.git | tail -n 2 | head -n 1 | cut -f2 | cut -d'/' -f3)
NEW_VER="${CUR_TAG}_$REV_SHORT"
cat <<EOF
{ pkgs ? import <nixpkgs> {} }:
pkgs.rustPlatform.buildRustPackage rec {
pname = "slash";
version = "$NEW_VER";
$NEW_SRC
doCheck = false; # TODO: Find a way to make tests work
cargoLock.lockFile = ./Cargo.lock;
passthru = {
shellPath = "/bin/slash";
};
}
EOF