Unverified Commit c2ec565e authored by Defelo's avatar Defelo
Browse files

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).
parent 7f889f24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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";
+0 −2
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
#!/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
+0 −1
Original line number Diff line number Diff line
0-unstable-2025-11-01