Compare commits

...

2 Commits
0.1.1 ... main

Author SHA1 Message Date
Tissevert 14dcb9aed6 Update README 2021-11-20 19:17:21 +01:00
Tissevert d139d0ab78 Fix warning about stdenv deprecation 2021-02-09 17:38:34 +01:00
2 changed files with 17 additions and 11 deletions

View File

@ -4,28 +4,34 @@ This Nix derivation provides an attribute set with each package referenced by it
## Quick try
To quickly try a package `${PACKAGE_NAME}` from this repository, you can issue on the command line :
To quickly try a package `${PACKAGE_NAME}` from the latest version of this repository, you can issue on the command line :
```bash
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.1.tar.gz' -i ${PACKAGE_NAME}
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz' -i ${PACKAGE_NAME}
```
It's easy to pin a precise version by replacing `main` by the tag your interested in like so :
```bash
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.2.tar.gz' -i ${PACKAGE_NAME}
```
## Declarative setup
To use this repository in a more reproducible and less imperative way, you can include the following snippet it in your `/etc/nixos/configuration.nix` or anywhere else you please :
To use this repository declaratively from within a nix expression (say, in your `/etc/nixos/configuration.nix`) instead of from the command line, you can include the following snippet :
```nix
let
tissevertpkgs = import (
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.1.tar.gz
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz
) {};
in
```
Then, anywhere where you select packages like for instance in `environment.systemPackages` or in your `users.users.<name>.packages` my packages are available within the attribute set `tissevertpkgs` like this for instance :
Then, anywhere where you select packages, for instance in `environment.systemPackages` or in your `users.users.<name>.packages`, my packages are available within the attribute set `tissevertpkgs` like this for instance :
```nix
packages = [ pkgs.git pkgs.vim tissevertpkgs.SJW ]
packages = [ tissevertpkgs.SJW ]
```
## Current package selection

View File

@ -3,8 +3,8 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
overrides = self: super: {
hablo = self.callPackage (
{ mkDerivation, aeson, base, bytestring, Cabal, containers
, directory, filepath, lucid, mtl, optparse-applicative, parsec
, SJW, stdenv, template, text, time, unix
, directory, filepath, lib, lucid, mtl, optparse-applicative
, parsec, SJW, template, text, time, unix
}:
mkDerivation {
pname = "hablo";
@ -26,12 +26,12 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
];
homepage = "https://git.marvid.fr/Tissevert/hablo";
description = "A minimalist static blog generator";
license = stdenv.lib.licenses.bsd3;
license = lib.licenses.bsd3;
}
) {};
SJW = self.callPackage (
{ mkDerivation, attoparsec, base, Cabal, containers, directory
, filepath, mtl, optparse-applicative, random, stdenv, text, time
, filepath, lib, mtl, optparse-applicative, random, text, time
, unix
}:
mkDerivation {
@ -54,7 +54,7 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
benchmarkHaskellDepends = [ base directory filepath random time ];
homepage = "https://git.marvid.fr/Tissevert/SJW";
description = "The Simple Javascript Wrench is a very simple tool to pack several JS «modules» into a single script";
license = stdenv.lib.licenses.bsd3;
license = lib.licenses.bsd3;
}
) {};
};