Skip to content

Commit

Permalink
feat: Support Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Mar 8, 2024
1 parent b12a1e5 commit 4549a96
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 0 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
description = "elevation";

inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
patchedPkgs =
import (pkgs.applyPatches {
name = "libtiff: Add LERC support";
src = nixpkgs;
patches = [
(pkgs.fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/290556.patch";
hash = "sha256-J92poRJkI+pE/Z/Eohq0Q61nRH2cya4tTqL8N9XHhJw";
})
];
}) {
inherit system;
};
in {
devShells.default = pkgs.mkShell {
packages = [
pkgs.alejandra
patchedPkgs.gdal
pkgs.gitFull
pkgs.nodejs
pkgs.s5cmd
];
};
}
);
}

0 comments on commit 4549a96

Please sign in to comment.