nixpkgs/pkgs/by-name/st/stricat/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

28 lines
705 B
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "stricat";
version = "20140609100300";
src = fetchurl {
url = "http://www.stribob.com/dist/${pname}-${version}.tgz";
sha256 = "1axg8r4g5n5kdqj5013pgck80nni3z172xkg506vz4zx1zcmrm4r";
};
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''
mkdir -p $out/bin
mv stricat $out/bin
'';
meta = {
description = "Multi-use cryptographic tool based on the STRIBOB algorithm";
homepage = "https://www.stribob.com/stricat/";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.thoughtpolice ];
mainProgram = "stricat";
};
}