58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{
|
|
description = "fast and simple tripplanner";
|
|
|
|
inputs = {
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }: {
|
|
|
|
overlay = final: prev: {
|
|
|
|
oeffisearch = (
|
|
let
|
|
nimhafas = final.fetchgit {
|
|
url = "https://cgit.ctu.cx/nimhafas";
|
|
rev = "1909376e6c33d9b5c1f56139fe53e6866692dde0";
|
|
sha256 = "1xaj3dd8i2izja3zzvy4db7hz3q1qdsp6csf3ww24f523dyxl8rn";
|
|
};
|
|
|
|
in final.nimPackages.buildNimPackage {
|
|
name = "oeffisearch";
|
|
src = self;
|
|
|
|
buildInputs = [ nimhafas ];
|
|
|
|
nimBinOnly = true;
|
|
nimRelease = true;
|
|
|
|
postInstall = ''
|
|
mkdir $out/share;
|
|
cp -r $src/client $out/share/oeffisearch;
|
|
'';
|
|
}
|
|
);
|
|
|
|
};
|
|
|
|
} // (flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlay ];
|
|
};
|
|
|
|
in rec {
|
|
|
|
packages.default = packages.oeffisearch;
|
|
packages.oeffisearch = pkgs.oeffisearch;
|
|
|
|
apps.default = {
|
|
type = "app";
|
|
program = "${pkgs.oeffisearch}/bin/oeffisearch";
|
|
};
|
|
|
|
}
|
|
));
|
|
} |