nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (1240B)


      1 {
      2   lib,
      3   stdenv,
      4   buildGoModule,
      5   fetchFromGitHub,
      6   installShellFiles,
      7   buildPackages,
      8 }:
      9 
     10 buildGoModule {
     11   pname = "riffraff";
     12   version = "0.5.0-unstable-2022-10-25";
     13 
     14   src = fetchFromGitHub {
     15     owner = "mre";
     16     repo = "riffraff";
     17     rev = "d4aa7ff38660cc2c5df30954789ee5d45d78836d";
     18     hash = "sha256-gWzbU2PX5AD0lKBQ/HKPHPmDDQByVv/IR4Xq0oTQJ2A=";
     19   };
     20 
     21   vendorHash = null;
     22 
     23   nativeBuildInputs = [ installShellFiles ];
     24 
     25 #  postInstall =
     26 #    let
     27 #      riffraff =
     28 #        if stdenv.buildPlatform.canExecute stdenv.hostPlatform then
     29 #          placeholder "out"
     30 #        else
     31 #          buildPackages.riffraff;
     32 #    in
     33 #    ''
     34 #      export JENKINS_URL="http://example.com/"
     35 #      export JENKINS_USER="username"
     36 #      export JENKINS_PW="password"
     37 #      installShellCompletion --cmd riffraff \
     38 #        --bash <(${riffraff}/bin/riffraff completion bash) \
     39 #        --fish <(${riffraff}/bin/riffraff completion fish) \
     40 #        --zsh <(${riffraff}/bin/riffraff completion zsh)
     41 #    '';
     42 
     43   meta = {
     44     description = "A commandline interface for Jenkins";
     45     homepage = "https://github.com/mre/riffraff";
     46     license = lib.licenses.mit;
     47     maintainers = [ lib.maintainers.sikmir ];
     48     mainProgram = "riffraff";
     49   };
     50 }