0222d1d1c4
This is a rewrite of the `since` bash script into rust. First draft, kinda bad, made on an airplane without wifi. Signed-off-by: Christina Sørensen <christina@cafkafk.com>
34 lines
705 B
Nix
34 lines
705 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
systems.url = "github:nix-systems/default";
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs = {
|
|
systems.follows = "systems";
|
|
};
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
flake-utils,
|
|
nixpkgs,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
pkgs = (import nixpkgs) {
|
|
inherit system;
|
|
};
|
|
in {
|
|
packages.default = pkgs.rustPlatform.buildRustPackage {
|
|
pname = "since";
|
|
version = "0.0.1";
|
|
|
|
cargoHash = "sha256-OcbYThSp4j+0BaIten1fSR26dHG04V27svjMIEZVLbo=";
|
|
|
|
src = ./.;
|
|
};
|
|
}
|
|
);
|
|
}
|