apps/phototool: init

wip/nixpkgs-raku
Katharina Fey 3 years ago
parent bd35993adc
commit bb208bea31
Signed by: kookie
GPG Key ID: F972AEEA2887D547
  1. 14
      apps/phototool/README.md
  2. 22
      apps/phototool/pt-import
  3. 6
      apps/phototool/shell.nix

@ -0,0 +1,14 @@
# photo 🔷 tool
A small tool to import and export photos from darktable collections.
## How to build
Use [Nix](https://nixos.org)!
```console
$ nix-build
$ result/bin/pt
```

@ -0,0 +1,22 @@
#!/usr/bin/env raku
# Define a str type of path
# TODO: validate a path?
subset path of Str;
subset ID of Str;
multi sub MAIN("--version")
{
say "pt-import 0.1.0"
}
multi sub MAIN(
$src, #= Source of image data (on SD card)
$store, #= Directory of darktable collections
ID :$start-id, #= The start image ID to import
ID :$end-Id, #= The end image ID to import
Bool :$verbose, #= Display verbose output
)
{
say "execute main function"
}

@ -0,0 +1,6 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "raku";
buildInputs = with pkgs; [ rakudo ];
}
Loading…
Cancel
Save