package.nix (1286B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchPnpmDeps, 6 nodejs, 7 pnpm, 8 pnpmConfigHook, 9 writableTmpDirAsHomeHook, 10 }: 11 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "overpass-turbo"; 14 version = "2026-01-28"; 15 16 src = fetchFromGitHub { 17 owner = "tyrasd"; 18 repo = "overpass-turbo"; 19 rev = "644c5ec33864d3acadf25b5b7d3e6ad876d09c0d"; 20 hash = "sha256-HvCarTfqL33wYlrY6S+tqyc7d4fYqkYgw0P7X/bgTqQ="; 21 }; 22 23 postPatch = '' 24 substituteInPlace vite.config.mts \ 25 --replace-fail "git log -1 --format=%cd --date=short" "echo ${finalAttrs.version}" \ 26 --replace-fail "git describe --always" "echo ${finalAttrs.src.rev}" 27 ''; 28 29 pnpmDeps = fetchPnpmDeps { 30 inherit (finalAttrs) pname version src; 31 fetcherVersion = 3; 32 hash = "sha256-S3MkYiQQUiztdFhfDkoPrI8c77VNx4AQVq0MPrCuqF4="; 33 }; 34 35 nativeBuildInputs = [ 36 nodejs 37 pnpm 38 pnpmConfigHook 39 writableTmpDirAsHomeHook 40 ]; 41 42 buildPhase = '' 43 runHook preBuild 44 pnpm build 45 runHook postBuild 46 ''; 47 48 installPhase = '' 49 mv dist $out 50 ''; 51 52 meta = { 53 description = "A web based data mining tool for OpenStreetMap using the Overpass API"; 54 homepage = "https://github.com/tyrasd/overpass-turbo"; 55 license = lib.licenses.mit; 56 maintainers = [ lib.maintainers.sikmir ]; 57 }; 58 })
