nixpkgs/pkgs/by-name/fa/fasd/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

36 lines
984 B
Nix

{ lib, stdenv, fetchFromGitHub } :
stdenv.mkDerivation rec {
pname = "fasd";
version = "unstable-2016-08-11";
src = fetchFromGitHub {
owner = "clvv";
repo = pname;
rev = "90b531a5daaa545c74c7d98974b54cbdb92659fc";
sha256 = "0i22qmhq3indpvwbxz7c472rdyp8grag55x7iyjz8gmyn8gxjc11";
};
installPhase = ''
PREFIX=$out make install
'';
meta = with lib; {
homepage = "https://github.com/clvv/fasd";
description = "Quick command-line access to files and directories for POSIX shells";
license = licenses.mit;
longDescription = ''
Fasd is a command-line productivity booster.
Fasd offers quick access to files and directories for POSIX shells. It is
inspired by tools like autojump, z and v. Fasd keeps track of files and
directories you have accessed, so that you can quickly reference them in the
command line.
'';
platforms = platforms.all;
maintainers = [ ];
mainProgram = "fasd";
};
}