This commit is contained in:
2023-02-23 16:34:58 +01:00
parent 89d026cd1e
commit 6ba3f64334
2 changed files with 105 additions and 0 deletions

36
flake.nix Normal file
View File

@@ -0,0 +1,36 @@
{
description = "All kinds of stuff";
inputs = {
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.follows = "rust-overlay/flake-utils";
nixpkgs.follows = "rust-overlay/nixpkgs";
};
outputs = inputs@{nixpkgs, flake-utils, ...}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
inputs.rust-overlay.overlays.default
];
};
in
{
packages.onomap = pkgs.haskellPackages.callCabal2nix "onomap" ./onomastics-ng {};
packages.rusty-jeep = pkgs.rustPlatform.buildRustPackage rec {
name = "rusty-jeep";
version = "1.0.0";
src = ./rusty-jeep;
nativeBuildInputs = [pkgs.pkg-config];
buildInputs = [pkgs.alsa-lib];
cargoHash = "sha256-3Zuh22qGSIhyOnwoZqpf3eio5l2q9u6XTUpiCBnAHrA=";
meta = with nixpkgs.lib; {
description = "A beeping program inspired by K_belwagen";
license = licenses.wtfpl;
maintainers = [maintainers.kmein];
};
};
});
}