bruijn: remove version override

r-ryantm wasn't able to update this package automatically
because it couldn't find the version in the derivation file
(https://nixpkgs-update-logs.nix-community.org/bruijn/2026-01-05.log).
This commit is contained in:
Defelo
2026-01-06 16:31:39 +01:00
parent 7f889f245d
commit c2ec565ee4
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
}:
mkDerivation {
pname = "bruijn";
version = "0.1.0.0";
version = "0-unstable-2025-11-01";
src = fetchzip {
url = "https://github.com/marvinborner/bruijn/archive/c37a9d27b9f654b1e0118d32269a1548800b062b.tar.gz";
sha256 = "1a667693agsc559yy4k04gxv1hlsgkn3aw64yvg876fbn5dr7sk3";
-2
View File
@@ -10,8 +10,6 @@ let
generated = haskellPackages.callPackage ./generated.nix { };
overrides = {
version = lib.fileContents ./version.txt;
passthru.updateScript = ./update.sh;
description = "Purely functional programming language based on lambda calculus and de Bruijn indices";
+4 -3
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils cabal2nix curl jq
#!nix-shell -i bash -p coreutils cabal2nix curl jq nixfmt gnused
set -euo pipefail
@@ -9,8 +9,9 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
< <(curl ${GITHUB_TOKEN:+-u ":$GITHUB_TOKEN"} -sfL https://api.github.com/repos/marvinborner/bruijn/branches/main \
| jq -r '.commit | .sha, .commit.committer.date')
version="0-unstable-$(date -I --date="$committer_date")"
cabal2nix --maintainer defelo "https://github.com/marvinborner/bruijn/archive/${rev}.tar.gz" \
| nixfmt \
| sed -E 's/\bversion = "[^"]+";/version = "'"${version}"'";/' \
> generated.nix
echo "0-unstable-$(date -I --date="$committer_date")" > version.txt
-1
View File
@@ -1 +0,0 @@
0-unstable-2025-11-01