GithubHelp home page GithubHelp logo

Can't install with nix about chee HOT 3 CLOSED

eikek avatar eikek commented on August 28, 2024
Can't install with nix

from chee.

Comments (3)

eikek avatar eikek commented on August 28, 2024

Hello @WhosCounting, sorry for this! You're right, I'm not doing much here anymore. Reason is mainly that it is doing what I want :) But this also means that some things are outdated. The nix recipe is one such thing. Back then I tried to compile the software from within the nix build. But due to too many problems with this approach, I'm now just installing from a pre-build zip file. I'm now using this nix derivation:

{ stdenv, fetchurl, unzip, jre8  }:

with stdenv.lib;

stdenv.mkDerivation rec {
  version = "0.3.0";
  name = "chee-${version}";

  src = fetchurl {
    url = "https://github.com/eikek/chee/releases/download/release%2F${version}/chee-${version}.zip";
    sha256 = "1g8dd0dlzdhhr4jiiz3vb62pikwl48rksppzg9z51d6qrc044vmi";
  };

  unpackPhase = ''
    ${unzip}/bin/unzip $src
  '';

  installPhase = ''
    mkdir -p $out/{bin,program}
    cp -r chee-${version}/* $out/program
    sed -i 's,^java,${jre8}/bin/java,g' $out/program/chee
    ln -s $out/program/chee $out/bin/chee
    chmod 755 $out/program/chee
  '';

  meta = {
    description = "Chee is a command line tool for managing photos.";
    homepage = https://github.com/eikek/chee;
    license = licenses.gpl3;
  };
}

from chee.

plants-mom avatar plants-mom commented on August 28, 2024

Oh, don't be sorry! I meant it as a polite way of asking for help :)
Thanks for your derivation, this works for me (for possible future readers: I had to replace the first line with: with import <nixpkgs>{};). And thanks one more time for sharing chee, I like it a lot.

from chee.

eikek avatar eikek commented on August 28, 2024

You are welcome; and thanks for the kind words!

from chee.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.