1
0
mirror of https://tulpa.dev/cadey/gitea-release synced 2025-10-06 01:42:48 +02:00
Files
rust-gitea-sdk/default.nix
Christine Dodrill 5d35469a86 nix/docker builds
2020-05-31 15:35:00 -04:00

17 lines
472 B
Nix

{ pkgs ? import <nixpkgs> { }, sources ? import ./nix/sources.nix
, naersk ? import sources.naersk { } }:
with pkgs;
let
srcNoTarget = dir:
builtins.filterSource
(path: type: type != "directory" || builtins.baseNameOf path != "target")
dir;
naersk = pkgs.callPackage sources.naersk { };
src = srcNoTarget ./.;
remapPathPrefix = true;
in naersk.buildPackage {
inherit src remapPathPrefix;
buildInputs = with pkgs; [ pkg-config openssl libgit2 ];
}